chrisvel / wreeto_official

Wreeto is an open source note-taking, knowledge management and wiki system.
https://wreeto.com
GNU Affero General Public License v3.0
387 stars 13 forks source link

Bold issue #46

Open Ch0wW opened 4 years ago

Ch0wW commented 4 years ago

Using the Bold markdown with a space leads to undesired behaviour with the WTSIWYG editor, aswell as the final result.

image

Result: image

chrisvel commented 4 years ago

I am sorry for the late reply. I don't think this is an issue. According to the markdown guide:

To bold text, add two asterisks or underscores before and after a word or phrase. To bold the middle of a word for emphasis, add two asterisks without spaces around the letters.

In your first example, it seems that you didn't close the bold asterisks. Even in github see this. And this is bold text something

Or is it something else I am missing ?

Ch0wW commented 4 years ago

Indeed, Markdown didn't support the bold propertly after adding spaces. I wasn't aware of that, so my bad.

However, that gives out another issue with the Markdown parser or the preview editor. Actually, using the same example above, the italic property shouldn't be applied. For the editor, the bold properties shouldn't be seen through the whole sentence. Here's what Github applies below :

Using a Bold text and not delimiting with with a space makes the text parser go crazy, and only parses an italic.