Markdown option for italic: underscore vs asterisk

Didn’t there used to be a setting somewhere for rendering both underscore and single asterisk as italic? I feel like I saw it somewhere about a month ago but now I can’t find it in 0.8.7.

What I really want is to use CSS to have underscore do nothing and single asterisk to render as italic, but I think I selected this strong=italic option I’m remembering and now the CSS doesn’t have any effect. How can I undo strong=italic?

Related: Option to change the default markdown for Italic - Archive - Logseq

3 Likes

The markdown standards support both underscore and asterisk for italic.
Therefore Logseq supports both. The main one used now is an asterisk, but it will be swapped with an underscore to resolve another issue. For more information:

You could always use a backslash before the underscore to not render it as italic.

What is the use case of having underlines surrounding a word without adding formatting?

I often use Markdown subscript and superscript formatting (which isn’t officially supported?), although it seems to require curly braces to work, eg x_{m} x^{n}. At the time I posted this question a string like x_{m}y_{n} or x_{m} y_{n} was italicizing the y.

I am aware of alternatives and I do not like them in many situations. I like using Markdown sub/superscripts.

yes, it does require curly brackets because subscripts and superscripts aren’t part of Markdown spec.

the logseq parser ‘mldoc’ doesn’t support it. Its possible that it will in the future.