Skip to content

Commit

Permalink
Fix examples for options bracketedSpans and fencedDivs
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Dec 28, 2022
1 parent 19831d9 commit 499c65a
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -3290,16 +3290,18 @@ following content:

\begin{markdown}
A paragraph.

::: {.identifier}
A fenced div.
:::
\end{markdown}

\begin{markdown*}{blankBeforeDivFence}
A paragraph.
```

::: {.identifier}
Not a fenced div.
```
:::
\end{markdown*}

\end{document}
Expand All @@ -3315,7 +3317,9 @@ following text:
>
> A fenced div.
>
> A paragraph. ::: {.identifier} Not a fenced div. :::
> A paragraph.
>
> ::: {.identifier} Not a fenced div. :::

%</manual-options>
%<*tex>
Expand Down Expand Up @@ -3612,10 +3616,10 @@ following content:
renderers = {
attributeKeyValue = {
\str_if_eq:nnT
{ #1 }
{ ##1 }
{ color }
{
\color_select:n { #2 }
\color_select:n { ##2 }
}
},
},
Expand All @@ -3636,12 +3640,12 @@ Here is some [colored text]{color=red}.
```````
Next, invoke LuaTeX from the terminal:
``` sh
lualatex --shell-escape document.tex
lualatex document.tex
``````
A PDF document named `document.pdf` should be produced and contain the
following text:

> Here is some [colored text]{color=red}.
> Here is some <span style="color: red">colored text</span>.

%</manual-options>
%<*tex>
Expand Down Expand Up @@ -10271,8 +10275,8 @@ following content:
\usepackage[bracketedSpans]{markdown}
\markdownSetup{
renderers = {
fencedDivAttributeContextBegin = {(},
fencedDivAttributeContextEnd = {)},
bracketedSpanAttributeContextBegin = {(},
bracketedSpanAttributeContextEnd = {)},
},
}
\begin{document}
Expand Down Expand Up @@ -12176,7 +12180,7 @@ Using a text editor, create a text document named `document.tex` with the
following content:
``` tex
\documentclass{article}
\usepackage[fencedDiv]{markdown}
\usepackage[fencedDivs]{markdown}
\markdownSetup{
renderers = {
fencedDivAttributeContextBegin = {%
Expand Down

0 comments on commit 499c65a

Please sign in to comment.