Skip to content

Commit

Permalink
Add fancy list renderers
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Aug 18, 2022
1 parent 48bd575 commit 0f93e07
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -11034,6 +11034,80 @@ option is `true`. The macro receives no arguments.
%
% \begin{markdown}

The \mdef{markdownRendererFancyOlBegin} macro represents the beginning of a
fancy ordered list that contains an item with several paragraphs of text (the
list is not tight). This macro will only be produced, when the \Opt{fancyLists}
option is `true`. The macro receives two arguments: the style of the list item
labels (`Decimal`, `LowerRoman`, `UpperRoman`, `LowerAlpha`, and `UpperAlpha`),
and the style of delimiters between list item labels and texts (`Default`,
`OneParen`, and `Period`).

% \end{markdown}
%
% \iffalse
%</manual-tokens>
%<*tex>
% \fi
%
% \begin{macrocode}
\def\markdownRendererFancyOlBegin{%
\markdownRendererFancyOlBeginPrototype}%
\ExplSyntaxOn
\seq_put_right:Nn
\g_@@_renderers_seq
{ fancyOlBegin }
\prop_put:Nnn
\g_@@_renderer_arities_prop
{ fancyOlBegin }
{ 2 }
\ExplSyntaxOff
% \end{macrocode}
% \par
%
% \iffalse
%</tex>
%<*manual-tokens>
% \fi
%
% \begin{markdown}

The \mdef{markdownRendererFancyOlBeginTight} macro represents the beginning of
a fancy ordered list that contains no item with several paragraphs of text (the
list is tight). This macro will only be produced, when the \Opt{fancyLists}
and \Opt{tightLists} options are `true`. The macro receives two arguments: the
style of the list item labels (`Decimal`, `LowerRoman`, `UpperRoman`,
`LowerAlpha`, and `UpperAlpha`), and the style of delimiters between list
item labels and texts (`Default`, `OneParen`, and `Period`).

% \end{markdown}
%
% \iffalse
%</manual-tokens>
%<*tex>
% \fi
%
% \begin{macrocode}
\def\markdownRendererFancyOlBeginTight{%
\markdownRendererFancyOlBeginTightPrototype}%
\ExplSyntaxOn
\seq_put_right:Nn
\g_@@_renderers_seq
{ fancyOlBeginTight }
\prop_put:Nnn
\g_@@_renderer_arities_prop
{ fancyOlBeginTight }
{ 2 }
\ExplSyntaxOff
% \end{macrocode}
% \par
%
% \iffalse
%</tex>
%<*manual-tokens>
% \fi
%
% \begin{markdown}

The \mdef{markdownRendererOlItem} macro represents an item in an ordered list.
This macro will only be produced, when the \Opt{startNumber} option is
`false`. The macro receives no arguments.
Expand Down

0 comments on commit 0f93e07

Please sign in to comment.