diff --git a/bundle/latex2js.css b/bundle/latex2js.css index 6fe80441..3ae5f55f 100644 --- a/bundle/latex2js.css +++ b/bundle/latex2js.css @@ -151,6 +151,14 @@ h4.theorem-head::after { pre { overflow: auto; } + +/* Verbatim blocks render as plain, page-coloured code — no gray box, padding, + or rounding. Consumers who want a code-block look override this rule. */ +pre.verbatim { + background-color: transparent; + padding: 0; + border-radius: 0; +} /* * Paragraph spacing. A run of blank lines is one \par however long it is, so * the gap belongs to the document rather than to how many times the author hit diff --git a/packages/css/latex2js.css b/packages/css/latex2js.css index 6fe80441..3ae5f55f 100644 --- a/packages/css/latex2js.css +++ b/packages/css/latex2js.css @@ -151,6 +151,14 @@ h4.theorem-head::after { pre { overflow: auto; } + +/* Verbatim blocks render as plain, page-coloured code — no gray box, padding, + or rounding. Consumers who want a code-block look override this rule. */ +pre.verbatim { + background-color: transparent; + padding: 0; + border-radius: 0; +} /* * Paragraph spacing. A run of blank lines is one \par however long it is, so * the gap belongs to the document rather than to how many times the author hit diff --git a/packages/latex2js/latex2js.css b/packages/latex2js/latex2js.css index 6fe80441..3ae5f55f 100644 --- a/packages/latex2js/latex2js.css +++ b/packages/latex2js/latex2js.css @@ -151,6 +151,14 @@ h4.theorem-head::after { pre { overflow: auto; } + +/* Verbatim blocks render as plain, page-coloured code — no gray box, padding, + or rounding. Consumers who want a code-block look override this rule. */ +pre.verbatim { + background-color: transparent; + padding: 0; + border-radius: 0; +} /* * Paragraph spacing. A run of blank lines is one \par however long it is, so * the gap belongs to the document rather than to how many times the author hit diff --git a/packages/react/src/components/verbatim.tsx b/packages/react/src/components/verbatim.tsx index 62f17405..4a00987c 100644 --- a/packages/react/src/components/verbatim.tsx +++ b/packages/react/src/components/verbatim.tsx @@ -6,14 +6,5 @@ interface VerbatimProps { } export default ({ lines }: VerbatimProps) => ( -
+ );