New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve markup regex to be consistent with latex & html export #117
base: develop
Are you sure you want to change the base?
Conversation
also add support of strike-through
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some identified cases are not yet managed…
see #114
8e3cb36
to
38d95df
Compare
🎉 I found specification draft here: https://orgmode.org/worg/dev/org-syntax.html#Emphasis_Markers
CONTENTS can contain any object encountered in a paragraph when markup is “bold”, “italic”, “strike-through” or “underline”. POST is a whitespace character, PRE, MARKER, CONTENTS, MARKER and POST are not separated by whitespace characters. Note that in fact POST can also be |
@sipi I think you're meant to put changes in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes indeed @sipi as @dmytrokyrychuk point out, changes need first to be made to the grammar template, then regenerate syntaxes/org.tmLanguage.json
Thanks for your reviews, I will look that as soon as possible… |
#114 one bold, verbatim, italic, underline or code character does not correctly end
#115 Feature request: manage +strike-through+
improve markup regexp to fulfill test in the file below (test with latex & html export), also add support for
+strike-through+(but it does not really strike-through :(, text is in red instead)specification draft found here: https://orgmode.org/worg/dev/org-syntax.html#Emphasis_Markers
See below, some tests:
The three followings tests does not success (due to consumption of the space just after the end markup char, and it can't be use anymore for next match)