Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions bundle/latex2js.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions packages/css/latex2js.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions packages/latex2js/latex2js.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 1 addition & 10 deletions packages/react/src/components/verbatim.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,5 @@ interface VerbatimProps {
}

export default ({ lines }: VerbatimProps) => (
<pre
className="verbatim"
style={{
backgroundColor: '#f5f5f5',
padding: '10px',
borderRadius: '4px',
overflow: 'auto'
}}
dangerouslySetInnerHTML={{ __html: lines.join('\n') }}
/>
<pre className="verbatim" dangerouslySetInnerHTML={{ __html: lines.join('\n') }} />
);
Loading