diff --git a/src/resources/formats/revealjs/pandoc/title-fancy/title-slide.html b/src/resources/formats/revealjs/pandoc/title-fancy/title-slide.html index 1af2da68082..897d0d1ec00 100644 --- a/src/resources/formats/revealjs/pandoc/title-fancy/title-slide.html +++ b/src/resources/formats/revealjs/pandoc/title-fancy/title-slide.html @@ -8,7 +8,7 @@

$title$

$for(by-author)$
-$if(by-author.url)$$endif$$if(by-author.name.literal)$$by-author.name.literal$$endif$$if(by-author.url)$$endif$ $if(by-author.orcid)$ $endif$ +$if(by-author.url)$$endif$$if(by-author.name.literal)$$by-author.name.literal$$endif$$if(by-author.url)$$endif$$if(by-author.orcid)$ $endif$
$if(by-author.email)$
diff --git a/tests/docs/reveal/title-fancy-author.qmd b/tests/docs/reveal/title-fancy-author.qmd new file mode 100644 index 00000000000..03fdb7682c0 --- /dev/null +++ b/tests/docs/reveal/title-fancy-author.qmd @@ -0,0 +1,9 @@ +--- +title: "RevealJS Title Author" +author: "Jonathan N. Katz" +format: revealjs +--- + +## Slide + +Content diff --git a/tests/smoke/render/render-reveal.test.ts b/tests/smoke/render/render-reveal.test.ts index f048d3775ef..1714995763b 100644 --- a/tests/smoke/render/render-reveal.test.ts +++ b/tests/smoke/render/render-reveal.test.ts @@ -15,8 +15,18 @@ import { testRender } from "./render.ts"; // demo file renders ok testRender(docs("reveal/index.qmd"), "revealjs", false); -let input = docs("reveal/aside-footnotes.qmd"); +let input = docs("reveal/title-fancy-author.qmd"); let output = outputForInput(input, "revealjs"); +testRender(input, "revealjs", false, [ + ensureFileRegexMatches(output.outputPath, [ + /Jonathan N\. Katz\n<\/div>/, + ], [ + /Jonathan N\. Katz[ \t]+\n<\/div>/, + ]), +]); + +input = docs("reveal/aside-footnotes.qmd"); +output = outputForInput(input, "revealjs"); testRender(input, "revealjs", false, [ ensureHtmlElements(output.outputPath, [ // speaker notes are left not moved