Witiko / markdown

:notebook_with_decorative_cover: A package for converting and rendering markdown documents in TeX
http://ctan.org/pkg/markdown
LaTeX Project Public License v1.3c
332 stars 31 forks source link

Add LaTeX defaults for renderers produced by options `tableAttributes` and `bracketedSpans` #528

Closed Witiko closed 1 week ago

Witiko commented 1 week ago

Closes #525.

Witiko commented 1 week ago

In addition to the LaTeX defaults for renderers produced by option tableAttributes, as shown in https://github.com/Witiko/markdown/issues/525#issuecomment-2483110635, this PR also adds LaTeX defaults for renderers produced by option bracketedSpans:

\documentclass{article}
\usepackage[
  bracketed_spans,
  relative_references,
  start_number = false,
]{markdown}
\begin{document}
\begin{markdown}

Demonstration of *bracketed spans* syntax:

 1. First item
 2. [Second item]{#second-item}
 3. Third item

Demonstration of a *relative reference*: See item <#second-item>.

\end{markdown}
\end{document}

image

Witiko commented 1 week ago

[T]his PR also adds LaTeX defaults for renderers produced by option bracketedSpans: [...]

As discussed with @MacLotsen at TUG 2024 and with @TeXhackse at matrix.org.