Closed an-prata closed 1 year ago
Don't worry about the elegance. I'm still embraced by my spaghetti pager code. Thanks for the fix! I'll do some verification and performance test this weekend and merge the pull. You might also wanna open a pull request at https://github.com/vmg/sundown , though they are probably no longer active
Fixes a small bug in which a space immediately following a codespan would be dropped from mandown's output. This PR is admittedly not the most elegant piece of code but it fixes it pretty well by making
markdown.c
's staticchar_codespan()
function check to see if a space immediately follows the code span, and if so moves the space into the code span.Before: After:
No changes where made to the output of mandown on the sample document.