Skip to content

Commit

Permalink
Make \@@_tl_set_from_cs:NNn preserve doubled #s.
Browse files Browse the repository at this point in the history
As discussed in
<#437 (comment)>.

Co-Authored-By: Max Chernoff <mseven@telus.net>
  • Loading branch information
Witiko and gucci-on-fleek committed Apr 27, 2024
1 parent baa08f8 commit cd490fd
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -20203,14 +20203,30 @@ following text:
\int_step_inline:nn
{ #3 }
{
\tl_put_right:Nn
\exp_args:NNc
\tl_put_right:Nn
\l_tmpa_tl
{ { #### ##1 } }
{ @@_cs_parameter_ ##1 }
}
\exp_args:NNV
\tl_set:No
#1
\l_tmpb_tl
\l_tmpa_tl
\regex_replace_all:nnN
{ \cP. }
{ \0\0 }
\l_tmpb_tl
\int_step_inline:nn
{ #3 }
{
\regex_replace_all:nnN
{ \c { @@_cs_parameter_ ##1 } }
{ \cP\# ##1 }
\l_tmpb_tl
}
\tl_set:NV
#1
\l_tmpb_tl
}
\cs_generate_variant:Nn
\@@_define_renderer:nNn
Expand Down

0 comments on commit cd490fd

Please sign in to comment.