diff --git a/packages/renderer/MdToHtml/rules/fountain.ts b/packages/renderer/MdToHtml/rules/fountain.ts index 01c0b0718..9386640ec 100644 --- a/packages/renderer/MdToHtml/rules/fountain.ts +++ b/packages/renderer/MdToHtml/rules/fountain.ts @@ -107,12 +107,19 @@ const pluginAssets = function() { function renderFountainScript(markdownIt: any, content: string) { const result = fountain.parse(content); - return ` -
${markdownIt.utils.escapeHtml(content)}+ let titlePageHtml = ''; + if (result.html.title_page) { + titlePageHtml = `
${markdownIt.utils.escapeHtml(content)}+ ${titlePageHtml}