How to serve raw Markdown in Jekyll/GHpages? -
i github pages website (long story) serve few unrendered markdown pages.
if leave .md file, without metadata, in root level of repository, gets converted html. want stay markdown.
if add .md file exclude in _config.yml, doesn't show @ in ghpages.
i can work in vanilla jekyll using keep_files, suspect it's not possible ghpages see files, they're inside _site, gets ignored git.
you can display plain text in markdown, 1 option wrap contents of .md file inside <pre> tags:
<pre> # header paragraph, etc. </pre> or, if don't want modify markdown files:
- place
.mdfile inside_includesdirectory, e.g._includes/raw.md - create page anywhere (and doesn't matter if extension
.mdor.html), , useinclude, inside<pre>tags:
--- --- <pre>{% include raw.md %}</pre> (the path after include relative _includes directory.)
this display markdown file unrendered.
wiki
Comments
Post a Comment