markdown-mode icon indicating copy to clipboard operation
markdown-mode copied to clipboard

display of nested emphasis / strong

Open telephon opened this issue 5 years ago • 5 comments

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

  • Markdown Mode: 2.5-dev
  • Emacs: GNU Emacs 26.3
  • OS: macOS 10.15.6

telephon avatar Sep 02 '20 10:09 telephon

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.

akkana avatar Sep 19 '20 21:09 akkana

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

telephon avatar Sep 20 '20 07:09 telephon

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

telephon avatar Jan 24 '22 11:01 telephon

Any news with regards to this? (bump)

telephon avatar Mar 16 '23 16:03 telephon

I'm afraid that there is no progress

syohex avatar Mar 17 '23 02:03 syohex