jrblevin / markdown-mode

Emacs Markdown Mode
http://jblevins.org/projects/markdown-mode/
GNU General Public License v3.0
895 stars 163 forks source link

display of nested emphasis / strong #539

Open telephon opened 4 years ago

telephon commented 4 years ago

While nested emphasis and strong inline formatting is permitted in pandoc, and renders correctly there into pdf/tex/html, markdown-mode does not format the markdown accordingly:

__nested _nests_ nest nests__
**nested *nests* nest nests**

__nested *nests* nest nests__
**nested _nests_ nest nests**

_nested __nests__ nest nests_
_nested **nests** nest nests_

*nested __nests__ nest nests*
*nested **nests** nest nests*

Expected Behavior

It should look like this (imagine the markup around it):

nested nests nest nests nested nests nest nests

nested nests nest nests nested nests nest nests

nested nests nest nests nested nests nest nests

nested nests nest nests nested nests nest nests

Actual Behavior

This is how it looks:

Screenshot 2020-09-02 at 12 10 44

Steps to Reproduce

Paste the above into a buffer with markdown-mode.

There are error messages (I am unsure whether they are related):

Invalid face attribute :inherit face-faded
Invalid face reference: face-faded

(tried with several fonts).

Software Versions

akkana commented 4 years ago

Seeing the same thing. I'd love to have a way to display bold inside of italic. Maybe related to bug #223 ? And the comments there about overhauling fontification probably apply here too.

telephon commented 4 years ago

Ah yes, this is related. It would definitely be worth a fix, since these combinations are semantically relevant in markdown.

telephon commented 2 years ago

This issue persists in the current developer version. Pandoc conversion to pdf is correct.

telephon commented 1 year ago

Any news with regards to this? (bump)

syohex commented 1 year ago

I'm afraid that there is no progress