Using multiple stylesheets
Is there a way to use multiple (cascading) style sheets at once, without modifying either the style sheets or the MD source?
My dox are written in Markdown, previewed in Marked, transformed into HTML via multi markdown, embedded in boilerplate HTML (including the stylesheet links), and presented as a web site. There are four layered stylesheets, by the time things reach the web. I'd like to preview them in styling as similar as possible to the target appearance. But I don't want to modify the MD source to include multiple styles: I'd have to un-modify it before processing for publication. And I don't want to modify the style sheets themselves; some are externally provided, some are under active development I want to track, not wrestle with.
I find that I can point Marked at one style sheet, and it applies those styles nicely. There's even a check box for "track css changes," which I presume would automatically notice style-sheet changes (just as it does MD source changes); also sweet. I can even have several style sheets and choose any one.
But I can't find a way to choose a sequence of them.
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 13 Sep, 2013 10:20 PM
use:
@include "path/to/style.css"
Track changes will only work on the main sheet included, not anything @included.
-Brett
2 Posted by jrepenni on 13 Sep, 2013 10:42 PM
Where do I use @include? In the MarkDown source? I was trying to avoid changing the MarkDown, because of my transform-and-embed publication chain.
Support Staff 3 Posted by Brett on 14 Sep, 2013 12:41 AM
No, in the stylesheet. You can include CSS files in other CSS files with @include statements.
-Brett (on iPhone)