orgajs icon indicating copy to clipboard operation
orgajs copied to clipboard

Markup Not Preserved Across Linebreaks

Open subthedubdub opened this issue 4 years ago • 2 comments

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.

subthedubdub avatar Feb 24 '21 20:02 subthedubdub

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?

gitonthescene avatar Apr 27 '21 01:04 gitonthescene

#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.

GuiltyDolphin avatar Jul 18 '21 14:07 GuiltyDolphin