Skip to content

Commit

Permalink
Define debugExtensions Lua option
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Oct 3, 2022
1 parent 8700b1a commit e960bdb
Showing 1 changed file with 60 additions and 1 deletion.
61 changes: 60 additions & 1 deletion markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -2441,6 +2441,7 @@ defaultOptions.contentBlocksLanguageMap = "markdown-languages.json"
% \iffalse
%</lua,lua-cli>
%<*manual-options>
% \fi

#### Option `debugExtensionsFileName`

Expand All @@ -2458,7 +2459,8 @@ defaultOptions.contentBlocksLanguageMap = "markdown-languages.json"
after built-in syntax extensions
% (see Section <#luabuiltinextensions>)
% \iffalse
(see options \Opt{citations}, \Opt{contentBlocks}, \Opt{definitionLists}, etc.)
(see options \Opt{citations}, \Opt{contentBlocks}, \Opt{definitionLists},
etc.)
% \fi
and user-defined syntax extensions
% (see Section <#luauserextensions>)
Expand Down Expand Up @@ -4240,6 +4242,63 @@ defaultOptions.contentBlocks = false
%</lua,lua-cli>
%<*manual-options>

#### Option `debugExtensions`

`debugExtensions` (default value: `false`)

% \fi
% \begin{markdown}
%
% \Optitem[false]{debugExtensions}{\opt{true}, \opt{false}}
%
: true

: Produce a \acro{JSON} file that will contain the
extensible subset of the \acro{peg} grammar of markdown
% (see the \luamref{walkable_syntax} hash table)
after built-in syntax extensions
% (see Section <#luabuiltinextensions>)
% \iffalse
(see options \Opt{citations}, \Opt{contentBlocks},
\Opt{definitionLists}, etc.)
% \fi
and user-defined syntax extensions
% (see Section <#luauserextensions>)
% \iffalse
(see option \Opt{extensions})
% \fi
have been applied. This helps you to see how the different
extensions interact. The name of the produced \acro{JSON} file is
controlled by the \Opt{debugExtensionsFileName} option.

: false

: Do not produce a \acro{JSON} file with the \acro{peg} grammar of
markdown.

% \end{markdown}
% \iffalse
%</manual-options>
%<*tex>
% \fi
% \begin{macrocode}
\@@_add_lua_option:nnn
{ debugExtensions }
{ boolean }
{ false }
% \end{macrocode}
% \iffalse
%</tex>
%<*lua,lua-cli>
% \fi
% \begin{macrocode}
defaultOptions.debugExtensions = false
% \end{macrocode}
% \par
% \iffalse
%</lua,lua-cli>
%<*manual-options>

#### Option `definitionLists`

`definitionLists` (default value: `false`)
Expand Down

0 comments on commit e960bdb

Please sign in to comment.