Skip to content
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

Add support of bulk redefinition of token renderers and token renderer prototypes in the \markdownSetup command using enumeration #362

Closed
4 tasks done
Witiko opened this issue Oct 19, 2023 · 0 comments · Fixed by #363
Labels
expl3 Related to the high-level programming language expl3 feature request plaintex Related to the plain TeX interface and implementation quality of life Related to quality-of-life improvements to the interface
Milestone

Comments

@Witiko
Copy link
Owner

Witiko commented Oct 19, 2023

Continues #232 and #361.

Tasks

  • Either parametrize \g_@@_glob_cache_prop with a sequence name or hardcode the sequence \g_@@_renderers_seq.

  • Document that not just wildcards but also enumeration are supported and add an example for both.

  • Make it possible to recover the renderer (prototype) name from the definition using #0.
    Here is how this can be done in expl3:

    \input expl3-generic
    \ExplSyntaxOn
    \tl_set:Nn \l_tmpa_tl { #0~#1! }
    \regex_replace_all:nnN { \cP\#0 } { Hello } \l_tmpa_tl
    \cs_generate_variant:Nn \cs_new:Nn { NV }
    \cs_new:NV \hello:n \l_tmpa_tl
    % Leave the text "Hello world!" in the input stream.
    \hello:n { world }
    \bye

    Document this possibility and add an example.

  • Use enumeration and wildcards in tests (file keyval-setup.tex) in addition to the technical documentation.

@Witiko Witiko added feature request plaintex Related to the plain TeX interface and implementation quality of life Related to quality-of-life improvements to the interface expl3 Related to the high-level programming language expl3 labels Oct 19, 2023
@Witiko Witiko added this to the 3.2.0 milestone Oct 19, 2023
@Witiko Witiko changed the title Add support of bulk redefinition of token renderers and token renderer prototypes in the \markdownSetup command using enumeration Add support of bulk redefinition of token renderers and token renderer prototypes in the \markdownSetup command using enumeration Oct 19, 2023
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 feature request plaintex Related to the plain TeX interface and implementation quality of life Related to quality-of-life improvements to the interface
Projects
None yet
1 participant