easy-markdown-editor icon indicating copy to clipboard operation
easy-markdown-editor copied to clipboard

How to exclude underscore from being interpreted as italics?

Open Braintelligence opened this issue 2 years ago • 5 comments

Hello everyone.

So in markdown you can usually remove underscores from being interpreted by passing options such as code-friendly.

I don't want EasyMDE to interpret underscores as possible italic symbols (in my case the actual rendering of the text ignores them anyway), but from the documentation I'm not sure where I can set underscores to be ignored. Can you help me with a hint? Thanks in advance!

Braintelligence avatar Jul 11 '22 08:07 Braintelligence

Did you solve this? I want remove the * from being interpreted.

fabianwohlfart avatar Sep 01 '22 14:09 fabianwohlfart

No, I didn't. Still waiting on help.

Braintelligence avatar Sep 01 '22 14:09 Braintelligence

@fabianwohlfart Wait, if you mean * for unordered lists you can use this:

unorderedListStyle: "-",

Braintelligence avatar Sep 01 '22 15:09 Braintelligence

@fabianwohlfart Wait, if you mean * for unordered lists you can use this:

unorderedListStyle: "-",

Asteriks also works for italic, not only lists. These »Styles« are the ones which get applied if you use the toolbar buttons. It does not strip away the interpretation of this character.

I opened a new topic here https://github.com/Ionaru/easy-markdown-editor/issues/496

fabianwohlfart avatar Sep 01 '22 21:09 fabianwohlfart

I know that it works for italic; that's precisely why I narrowed the scope for the list style. Typical users will not bother to set an asterisk for unordered lists by themselves if the editor proposes hyphens, so that was good enough for me. Since you didn't provide more details I didn't know that it was about italic and couldn't rule out XY-problems (sometimes it's enough to not get the option, even though interpreting still works). Good luck with your issue.

Braintelligence avatar Sep 02 '22 06:09 Braintelligence