Skip to content

Commit

Permalink
Merge pull request #289 from Witiko/fix/use-prg-instead-of-cs
Browse files Browse the repository at this point in the history
Use `\prg_new_conditional:Nnn` to define `\@@_if_option:n`
  • Loading branch information
github-actions[bot] authored Apr 7, 2023
2 parents 690e43a + 9299fe3 commit cf96f7c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
11 changes: 8 additions & 3 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@ Development:
token renderer prototypes in the `\markdownSetup` LaTeX
command using wildcards. (#232, #287)

Fixes:

- Remove extra space after inline elements with attributes.
(#288)

Documentation:

- Add a link to a preprint from TUGboat 44(1) to `README.md`.
(#234, a4d9fbf)

Fixes:
Refactoring:

- Remove extra space after inline elements with attributes.
(#288)
- Use `\prg_new_conditional:Nnn` to define `\@@_if_option:n`.
(#289)

## 2.22.0 (2023-04-02)

Expand Down
12 changes: 6 additions & 6 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -28839,8 +28839,9 @@ end
% \end{markdown}
% \begin{macrocode}
\ExplSyntaxOn
\cs_new:Nn
\@@_if_option:nTF
\prg_new_conditional:Nnn
\@@_if_option:n
{ TF, T, F }
{
\@@_get_option_type:nN
{ #1 }
Expand All @@ -28861,8 +28862,8 @@ end
\str_if_eq:NNTF
\l_tmpa_tl
\c_@@_option_value_true_tl
{ #2 }
{ #3 }
{ \prg_return_true: }
{ \prg_return_false: }
}
\msg_new:nnn
{ markdown }
Expand Down Expand Up @@ -30967,7 +30968,7 @@ end
% \end{markdown}
% \begin{macrocode}
\ExplSyntaxOn
\@@_if_option:nTF
\@@_if_option:nT
{ linkAttributes }
{
\RequirePackage{graphicx}
Expand All @@ -30991,7 +30992,6 @@ end
},
}
}
{ }
\ExplSyntaxOff
% \end{macrocode}
% \par
Expand Down

0 comments on commit cf96f7c

Please sign in to comment.