mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-05-25 01:09:09 -04:00
Trying to get html to render correctly inside tables in gh-pages.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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 %}) -->
|
||||
|
||||
Reference in New Issue
Block a user