implement RST & Markdown quote blocks (#19147)
* implement RST & Markdown quote blocks * compile with nim 1.0 * Fix indentation
This commit is contained in:
parent
7772ca303c
commit
040d23e799
7 changed files with 617 additions and 12 deletions
|
|
@ -139,9 +139,17 @@ doc.file = """
|
|||
\usepackage[most]{tcolorbox} % boxes around admonitions, code blocks, doc.item
|
||||
|
||||
\newtcolorbox{rstadmonition}[1][]{blanker, breakable,
|
||||
left=3mm, right=3mm, top=1mm, bottom=1mm,
|
||||
left=3mm, right=0mm, top=1mm, bottom=1mm,
|
||||
before upper=\indent, parbox=false, #1}
|
||||
|
||||
\newtcolorbox{rstquote}[1][]{blanker, breakable,
|
||||
left=3mm, right=3mm, top=1mm, bottom=1mm,
|
||||
parbox=false,
|
||||
borderline west={0.3em}{0pt}{lightgray},
|
||||
borderline north={0.05em}{0pt}{lightgray},
|
||||
borderline east={0.05em}{0pt}{lightgray},
|
||||
borderline south={0.05em}{0pt}{lightgray}}
|
||||
|
||||
\definecolor{rstframecolor}{rgb}{0.85, 0.8, 0.6}
|
||||
|
||||
\newtcolorbox{rstprebox}[1][]{blanker, breakable,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue