Is there a way to include a reference to an external stylesheet?
I have several Marked-generated files that I use in iframes on a school LMS. I have put together a stylesheet that makes the content look native. I would like to host the stylesheet externally from the HTML pages so that if/when the LMS style changes, I can just change this one stylesheet instead of going back and making new HTML files. I understand why it's good to have the style in the head (portability), but I'd really like to be able to include a <link> tag in the head of my HTML. Is there currently a way to do this? If not, is there a feature request I could support?
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

Support Staff 1 Posted by Brett on 19 Aug, 2013 03:05 AM
I might be missing something in your setup, but in this case is Marked providing anything other than rendering and a stylesheet embed you don't really want? If not, I'd actually recommend using an external processor (like command-line MultiMarkdown or a droplet) to render raw HTML that you could stick into the page and just have it inherit the stylesheet. Is that not an option?
You can use MultiMarkdown headers to do this, too. You should be able to include a line like:
XHTML Header: <link rel="stylesheet" href="style.css">
at the very top of the file, followed by blank lines, then save without including Marked's style. That should create what you need. Let me know if it doesn't.
-Brett
2 Posted by davidjohnmacdon... on 21 Aug, 2013 07:43 PM
Duh!
MultiMarkdown headers are my solution. I was trying to do something from Marked that I should have been doing in my text editor.
Thanks for the response. Sorry for the dumb question.