Subscripts (<sub>) rendered superscript in preview

keith.knipling's Avatar

keith.knipling

14 Oct, 2011 03:15 PM

Subject says it all. <sub> tags in markdown render as superscripts.

  1. Support Staff 1 Posted by Brett on 14 Oct, 2011 03:39 PM

    Brett's Avatar

    Sorry about that, missing rule in the default CSS files. I've fixed it for the next update, but if you need an immediate fix to the problem, you can use custom CSS. If you already have custom CSS, just add:

     sub {
        vertical-align: sub;
        top: -1px;
     }
    

    to your CSS file. I'm also attaching the fixed versions of the four default styles if you want to use them until the next release. Recommended location is ~/Library/Application Support/Marked/Custom CSS, then add to Style preferences. Marked uses the filename as the style name, so you may want to rename them for clarity in the menu.

  2. Brett closed this discussion on 14 Oct, 2011 03:39 PM.

Comments are currently closed for this discussion. You can start a new one.

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