Hi!
I have been trying to cook up a patch for a fontification issue I have with lines containing, in order, bold, then regular, then italic text. Everything from the last bold marker to the last matching italic marker gets fontified as italic:
The recipe for this screenshot was:
emacs -Q bold-italics.md
load-file markdown-mode/markdown-mode.el
revert-buffer
The left window loaded the current master as of this writing, the right window loaded my branch. I added those lines to the test suite.
make test
tells me I broke italic links (test-markdown-font-lock/italics-link
), so my approach was too simplistic. I took a look at markdown-inline-code-at-pos
and AFAICT, an equivalent function for bold text would allow markdown-match-italic
to distinguish between end-of-bold and start-of-italic asterisks.
At this point I figured it would be more productive to post an issue and get informed opinions and/or an actual fix before digging any further and breaking more things.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4