-
-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Line breaks from md files are removed #55
Comments
Hey @ih8snow, I suspect you have the option Strictly speaking, Markdown/CommonMark, ignores linebreaks. That is, the following text is rendered as a single sentence:
If you want insert hard linebreaks here, there's two ways you can do this with Markdown. The first option is to append two blank spaces (
The other option, which I personally prefer and recommend, is to add a backslash at the end of the line:
Does that help? |
Some more good news. 😄 I took a look at the information provided by the underlying parser, and it turns out it emits SoftBreak events for these soft linebreaks in your original example. I'm able to use this information to turn these SoftBreaks into HardBreaks, which should mimic Obsidian's I just need to organize this new code properly, hook it up to a CLI argument, add some testcases, etc. so expect a new feature and release with this somewhere over the next week or so. |
Hi, |
That is super cool! Great news at the end of the year. |
Happy new year! v22.1.0 is out now with a new |
Thanks!!! |
Hi Nick;
here's my challenge:
I created a vault with Obsidian v.0.13.17.
The vault contains several folder with *.md notes.
When I use obsidian-export in Linux or Windows 11 everything works fine. I checked the files re to the below mentioned error and I don't see a problem. (line breaks are there)
See screenshot:

Now I use this data to create a static HTML site with mkdocs and the material theme. Using this yml file for a local html.site (following the info on the mkdocs website:
site_name: Report site_url: "" theme: 'material' use_directory_urls: false plugins: []
Again all ok, except that all line breaks are removed. (same with different theme)

See Screenshots:
I really have no idea what's going on here, is that something you can fix this with the exporter?
/Jörn
Attached the test vault "ExportTest"
ExportTest.zip
Vault after obsidian-export:
Sitemd_files_after_obs-export.zip
HTML_Site after mkdocs export:
HTML-site.zip
The text was updated successfully, but these errors were encountered: