-
Notifications
You must be signed in to change notification settings - Fork 5
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
Markdown compiler handling line-breaks wrong #54
Comments
Try removing the |
- Added 'hardLineBreaks' option to fractive.json, default enabled to preserve existing functionality - Added 'smartPunctuation' option to fractive.json while I was in there, because why not
I added a
I find this sort of usage very natural. With
With
That's fixable by putting the two trailing spaces after the first link, which is technically correct per the official Markdown spec, but is also counterintuitive and invisible, which makes me kind of hate it. 😒 Anyway, with the above-referenced commit this behavior can be switched on or off in |
You're right about the use-case where links are separated by line breaks. It's what I've been doing, and when I tried switching to markdown-it-attrs, those links appearing on the same line was one of the major things that bothered me. On the other hand, if using a text editor with automatic line wrapping (which is really nice), Fractive devs will end up with a story where line breaks are placed according to their text editor's settings, making responsive design impossible. Which is a huge problem for making webgames. The best of both worlds would be adopting hard line breaks as the default, but hacking in some kind of solution for the link situation. Not pretty, but better for an average Fractive dev. |
Or, just turn every set of links into an unordered list.
|
What happened
When compiling Markdown files, Fractive is inserting a
<br>
element for every newline in the Markdown file. Here's the proper way to handle newlines.The text was updated successfully, but these errors were encountered: