careteditor / releases-beta

Caret Beta releases
40 stars 4 forks source link

Problems with bold and italic #9

Open Torsten-K opened 6 years ago

Torsten-K commented 6 years ago

I hope I can explain the issue I ran into. When I type in an asterisk and begin typing my text, it is displayed in italics in the editor, which is quite all right. Two asterisks make the text look bold, which is also correct.

But when I want to format an existing passage of text, say by typing an asterisk at the beginning and another at the end of the passage, the text keeps appearing as normal text, not as italic (or bold) text. In the preview everything looks fine, only in the editor the wysiwyg is missing (even after saving or re-opening the document or restarting Caret).

Caret 4.0.0.rc18 on Xubuntu 18.04 64-bit

astoilkov commented 6 years ago

Hi Torsten,

Do you have new lines between the asterisks? Currently, the editor doesn't support multiline parsing of inline elements.

Torsten-K commented 6 years ago

I tested again, and it works with paragraphs which only have one line (the editor itself may break the lines visually, at the line length defined in the settings, of course), but in deed it fails when I put in line breaks.

Interestingly, a few Markdown editors show italics or bold, even if there are line breaks, but most editors do not.

astoilkov commented 6 years ago

Yes. We are aware of this issue and plan to fix it in the future. Thanks for reporting it.