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:

  1. place .md file inside _includes directory, e.g. _includes/raw.md
  2. create page anywhere (and doesn't matter if extension .md or .html), , use include, inside <pre> tags:

---  ---  <pre>{% include raw.md %}</pre>

(the path after include relative _includes directory.)

this display markdown file unrendered.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -