Skip to content

Commit

Permalink
fix: correct line ending for markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
petyosi committed Feb 6, 2024
1 parent 924048b commit 9244ab3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/exportMarkdownFromLexical.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,10 @@ export function exportMarkdownFromLexical({
jsxComponentDescriptors,
jsxIsAvailable
}: ExportMarkdownFromLexicalOptions): string {
return toMarkdown(exportLexicalTreeToMdast({ root, visitors, jsxComponentDescriptors, jsxIsAvailable }), {
extensions: toMarkdownExtensions,
...toMarkdownOptions
})
return (
toMarkdown(exportLexicalTreeToMdast({ root, visitors, jsxComponentDescriptors, jsxIsAvailable }), {
extensions: toMarkdownExtensions,
...toMarkdownOptions
}) + '\n'
)
}

0 comments on commit 9244ab3

Please sign in to comment.