Setting Emacs Variables in Hugo Markdown
If you want to set Emacs File Variables in your Hugo markdown files but not have the Emacs variables visible in your rendered content you have a couple of options: Option 1 – use an HTML comment Include the file variables in an HTML comment – that will be stripped out, at least if you are using the default Goldmark renderer. That looks like this: <!-- Local Variables: mode: markdown-mode whitespace-line-column: 100 End: --> This will be replaced with ‘<– Raw HTML omitted –>’ in the rendered HTML, but won’t produce any user-visible display artifacts.
read more...
Tags: emacs hugo markdown