Trying to get html to render correctly inside tables in gh-pages.

This commit is contained in:
Don Cross
2019-05-30 17:46:53 -04:00
parent c8a0300ac0
commit de42c967d7
2 changed files with 11 additions and 3 deletions

View File

@@ -378,9 +378,13 @@ function run(inPrefixFileName, inXmlFileName, outMarkdownFileName) {
}
}
}
const prefix = fs.readFileSync(inPrefixFileName, {encoding: 'utf8'});
const markdown = xform.Markdown();
fs.writeFileSync(outMarkdownFileName, prefix + markdown);
// https://stackoverflow.com/questions/47262698/inline-html-is-escaped-by-jekyll
let md = '<!-- {% raw %} -->\n\n';
md += fs.readFileSync(inPrefixFileName, {encoding: 'utf8'});
md += xform.Markdown();
md += '\n<!-- {% endraw %}) -->\n';
fs.writeFileSync(outMarkdownFileName, md);
});
}

View File

@@ -1,3 +1,5 @@
<!-- {% raw %} -->
# Astronomy Engine (C/C++)
This is the complete programming reference for the C version of
@@ -493,3 +495,5 @@ To get started quickly, here are some [examples](../../demo/c/).
---
<a name="astro_search_func_t"></a>
<!-- {% endraw %}) -->