implement RST & Markdown quote blocks (#19147)

* implement RST & Markdown quote blocks

* compile with nim 1.0

* Fix indentation
This commit is contained in:
Andrey Makarov 2021-11-23 15:02:03 +03:00 • committed by GitHub
commit 040d23e799
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 617 additions and 12 deletions

View file

@ -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,