forked from jgm/lunamark
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Modernize LaTeX code using xparse and expl3 #96
Labels
expl3
Related to the high-level programming language expl3
latex
Related to the LaTeX interface and implementation
technical debt
Related to code smells and refactoring
Milestone
Comments
Witiko
added
latex
Related to the LaTeX interface and implementation
technical debt
Related to code smells and refactoring
labels
Aug 24, 2021
This issue is blocked by #124. |
Closing this issue also closes #96. |
This was referenced Jun 11, 2022
This issue is no longer blocked by #124 (closed). |
4 tasks
This was referenced Jul 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
expl3
Related to the high-level programming language expl3
latex
Related to the LaTeX interface and implementation
technical debt
Related to code smells and refactoring
At the moment, the LaTeX implementation makes heavy use of the
keyval
andxstring
third-party packages, and provides unintuitive interface (\begin{markdown}
and\begin{markdown*}{options}
instead of\begin{markdown}
and\begin{markdown}[options]
).Instead of using third-party packages, we should modernize the implementation to use
expl3
for key-value methods instead ofkeyval
and for string comparisons instead ofxstring
, and usexparse
to provide more intuitive interface (\begin{markdown}
and\begin{markdown}[options]
with\begin{markdown*}{options}
as a deprecated syntax).Tasks
expl3
to replace calls toxstring
. (See Replace calls to xstring with expl3 functions #153.)expl3
to replace calls tokeyval
. (See Replacekeyval
withl3keys
#157. Check that this closes Make the\markdownSetup
and\markdownSetupSnippet
commands accept\par
tokens #130.)Use(See Usexparse
to add an optional parameter to themarkdown
environment and deprecate themarkdown*
environment.Use the new form in
examples/latex.tex
.xparse
to add an optional parameter to themarkdown
environment and deprecate themarkdown*
environment #158.)References
expl3
package and LaTeX3 programmingexpl3
expl3
xparse
package: Document command parserxstring
: String manipulation for (La)TeXkeyval
: Processkey=value
schemesSee also other issues with the
expl3
label.The text was updated successfully, but these errors were encountered: