timonwong / OmniMarkupPreviewer

Sublime Text 2&3 plugin to live preview markup files, supported (not limited to) markup formats are markdown, reStructuredText, WikiCreole and textile.
MIT License
502 stars 75 forks source link

Restructured text confusion #72

Open iainhouston opened 9 years ago

iainhouston commented 9 years ago

This is pretty well what I was aiming for:

screenshot from https://www.tele3.cz/jbar/rest/rest.html

using this markup: source

but omniviewer got a bit confused at the third bullet: readme_rst _users_iainhouston_documents_web_pyprojects_iainhouston_com_mysite

Notice that Omniviewer put in Italics and a Block Quotes margin contrary to my expectations.

timonwong commented 9 years ago

Hi, this is what GitHub style does, if you are not satisfy with this, you can do customization to CSS file, step by step:

First, Copy github.css from {PackagesDir}/OmniMarkupPreviewer/public/github.css to {PackagesDir}/User/OmniMarkupPreviewer/public (the user folder should already exist).

Second, Open github.css in that user folder you copied before, find the following contents:

.markdown-body dl dt {
  padding: 0;
  margin-top: 16px;
  font-size: 1em;
  font-style: italic;
  font-weight: bold;
}

Replace to:

.markdown-body dl dt {
  padding: 0;
  margin-top: 16px;
  font-size: 1em;
  font-style: normal;
  font-weight: normal;
}

At last, reload the page.