releases-beta icon indicating copy to clipboard operation
releases-beta copied to clipboard

Problems with bold and italic

Open Torsten-K opened this issue 7 years ago • 3 comments

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

Torsten-K avatar Aug 31 '18 12:08 Torsten-K

Hi Torsten,

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

astoilkov avatar Sep 06 '18 09:09 astoilkov

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.

Torsten-K avatar Sep 06 '18 19:09 Torsten-K

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

astoilkov avatar Sep 07 '18 07:09 astoilkov