Adding Additional CSS for All Themes

sjg2001's Avatar


15 Feb, 2015 10:06 PM


Using Marked 2 Version 2.4.9 (876) I have added the Font Awesome CSS to the additional CSS for all themes. I changed the url path in the additional CSS but Marked 2 looks for the resources on the path /Users/~user/Desktop/

It works fine if I have the resources on the desktop. Anyway to change this so I don't have to have the fonts files lounging on my desktop?


  1. Support Staff 1 Posted by Brett on 15 Feb, 2015 11:21 PM

    Brett's Avatar

    How do you have the font imported in the CSS? Relative or absolute path?

  2. 2 Posted by sjg2001 on 16 Feb, 2015 01:31 AM

    sjg2001's Avatar

    I tried the absolute path in the CSS but Marked 2 was looking for the files at /Users/~user/Desktop/Applications/Font-Awesome-master not /Applications/Font-Awesome-master

  3. Support Staff 3 Posted by Brett on 16 Feb, 2015 01:37 AM

    Brett's Avatar

    I'd recommend putting the font-family definitions in a css file and
    using an @import statement in the Additional CSS field, e.g.:

    @import '/Users/ttscoff/testoverride.css'

    That should allow the paths to ignore the document base url and you
    should be able to load them with relative paths from the imported css

    Let me know if that helps.

  4. 4 Posted by sjg2001 on 16 Feb, 2015 02:23 AM

    sjg2001's Avatar

    That doesn't seem to work.
    i get

    <style>@import ‘/Users/sjg/Documents/Marked2/markd2addedCSS.css’</style>

    in the html head but no stylesheet loaded in the resources and div classes are ignored in document.

  5. Support Staff 5 Posted by Brett on 16 Feb, 2015 02:25 AM

    Brett's Avatar

    Works fine for me here, what version of Marked are you on?

  6. 6 Posted by sjg2001 on 16 Feb, 2015 02:28 AM

    sjg2001's Avatar

    Marked 2 Version 2.4.9 (876)

  7. 7 Posted by sjg2001 on 16 Feb, 2015 09:01 PM

    sjg2001's Avatar

    Got it to work. Needed to use @import url(/User/user/added.css) and good to go

    Thank you for your help.

  8. Support Staff 8 Posted by Brett on 16 Feb, 2015 09:08 PM

    Brett's Avatar

    You may have a better time with the 2.4.10 release (check for updates),
    assuming I solved the errors it was having yesterday. It removes
    sandboxing, which may be the issue here.

  9. Support Staff 9 Posted by Brett on 16 Feb, 2015 09:08 PM

    Brett's Avatar

    Ah! Glad to hear it. Not sure why it worked for me without url(), but ok

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


? 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