Skip to content
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

Markup Not Preserved Across Linebreaks #80

Open
subthedubdub opened this issue Feb 24, 2021 · 2 comments
Open

Markup Not Preserved Across Linebreaks #80

subthedubdub opened this issue Feb 24, 2021 · 2 comments

Comments

@subthedubdub
Copy link

Bold, italic, underline, &c. elements (parsed in orga/tokenize/inline.js) are not tokenized across line breaks. E.g.

** Bold Line 1
Bold Line 2 **

does not actually return text.bold leaf nodes. Makes it difficult to apply markup to phrases or sentences. Also makes future LaTeX work (#41) harder to implement since it presumably would be implemented in inline.js.

@gitonthescene
Copy link

That first line looks like headline in org-mode, not the beginning of bold text. Do you use org-mode in emacs? What does it look like there?

@GuiltyDolphin
Copy link
Contributor

#104 has support for multi-line markup. As @gitonthescene mentioned, the example you gave would be interpreted as a headline, but you could do:

*Bold Line 1
Bold Line 2*

If you wanted bold text across lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants