Using multiple stylesheets

jrepenni's Avatar

jrepenni

13 Sep, 2013 09:59 PM

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.

  1. Support Staff 1 Posted by Brett on 13 Sep, 2013 10:20 PM

    Brett's Avatar

    use:

    @include "path/to/style.css"

    Track changes will only work on the main sheet included, not anything @included.

    -Brett

  2. 2 Posted by jrepenni on 13 Sep, 2013 10:42 PM

    jrepenni's Avatar

    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.

  3. Support Staff 3 Posted by Brett on 14 Sep, 2013 12:41 AM

    Brett's Avatar

    No, in the stylesheet. You can include CSS files in other CSS files with @include statements.

    -Brett (on iPhone)

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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