diff --git a/bundle/latex2html5.bundle.js b/bundle/latex2html5.bundle.js index 2567407..0b608e7 100644 --- a/bundle/latex2html5.bundle.js +++ b/bundle/latex2html5.bundle.js @@ -2222,7 +2222,7 @@ var LaTeX2HTML5 = (() => { return ""; } var Functions2 = { - bq: () => '
', + bq: () => '
', claim(m) { return headed("Claim", "claim", this, m); }, @@ -2267,7 +2267,7 @@ var LaTeX2HTML5 = (() => { endproblem: () => closed(), endsolution: () => closed(), endtheorem: () => closed(), - eq: () => "", + eq: () => "", example(m) { return headed("Example", "example", this, m); }, @@ -4603,7 +4603,7 @@ var LaTeX2HTML5 = (() => { * @returns the lines with runs of text wrapped in paragraphs */ paragraphize(lines) { - const isBlock = (l) => /^\s*<(h[1-6]|ul|ol|li|p|div|table|blockquote|pre|figure)\b/i.test(l); + const isBlock = (l) => /^\s*<\/?(h[1-6]|ul|ol|li|p|div|table|blockquote|pre|figure)\b/i.test(l); const mathEnvBegin = /\\begin\{(align\*?|alignat\*?|equation\*?|eqnarray\*?|gather\*?|multline\*?)\}/; const out = []; let para = []; diff --git a/bundle/latex2js.css b/bundle/latex2js.css index a08c09d..708d61c 100644 --- a/bundle/latex2js.css +++ b/bundle/latex2js.css @@ -36,7 +36,7 @@ span.tt { font-family: courier; } -p.quotation { +blockquote.quotation { padding: 0 0 0 15px; margin: 0 0 20px; font-size: 10pt; diff --git a/packages/css/latex2js.css b/packages/css/latex2js.css index a08c09d..708d61c 100644 --- a/packages/css/latex2js.css +++ b/packages/css/latex2js.css @@ -36,7 +36,7 @@ span.tt { font-family: courier; } -p.quotation { +blockquote.quotation { padding: 0 0 0 15px; margin: 0 0 20px; font-size: 10pt; diff --git a/packages/latex2js/latex2js.css b/packages/latex2js/latex2js.css index a08c09d..708d61c 100644 --- a/packages/latex2js/latex2js.css +++ b/packages/latex2js/latex2js.css @@ -36,7 +36,7 @@ span.tt { font-family: courier; } -p.quotation { +blockquote.quotation { padding: 0 0 0 15px; margin: 0 0 20px; font-size: 10pt; diff --git a/packages/latex2js/src/lib/headers.ts b/packages/latex2js/src/lib/headers.ts index b644ee0..bb89333 100644 --- a/packages/latex2js/src/lib/headers.ts +++ b/packages/latex2js/src/lib/headers.ts @@ -71,7 +71,7 @@ function closed(): string { } export const Functions = { - bq: () => '
', + bq: () => '
', claim(this: any, m?: any) { return headed('Claim', 'claim', this, m); }, corollary(this: any, m?: any) { return headed('Corollary', 'corollary', this, m); }, definition(this: any, m?: any) { return headed('Definition', 'definition', this, m); }, @@ -96,7 +96,7 @@ export const Functions = { endproblem: () => closed(), endsolution: () => closed(), endtheorem: () => closed(), - eq: () => '', + eq: () => '', example(this: any, m?: any) { return headed('Example', 'example', this, m); }, problem(this: any, m?: any) { return headed('Problem', 'problem', this, m); }, proof: () => '
'); + expect(output).toContain('Quoted text.'); + expect(output).toMatch(/
Quoted text\.<\/p>\s*<\/blockquote>/); + expect(output).not.toContain('
\n'); + }); });