pillar-markup / Microdown

Microdown is a cleaned and simpler markdown but with more powerful features such as extensions.
Other
40 stars 31 forks source link

More annotatedParagraph #845

Closed Ducasse closed 3 months ago

Ducasse commented 3 months ago

Task 2.

A first version

!!note texte

should generate

\begin{note}
texte
\end{note}
!!important texte

should generate

\begin{important}
texte
\end{important}

Points to consider

If the user writes

!!imporTant texte

we still generate

\begin{important}
fooooooo texte
\end{important}

If the user writes

!!Foooo  texte

we still generate

\begin{note}
Foooo  texte
\end{note}

For later

We can extend it so that if the

\newenvironment{annotatedParagraph}{% \begin{leftbar}\textsf{\textbf{#1}}\quad }{\end{leftbar}}

!! Undefined
texte

generates

\begin{annotatedParagraph}{Undefined}
texte
\end{annotatedParagraph}