mixu / markdown-styles

Markdown to static HTML generator and multiple CSS themes for Markdown
1.85k stars 250 forks source link

github style: Bold not preserved with code #64

Open arkadianriver opened 7 years ago

arkadianriver commented 7 years ago

Hiya.. minor style suggestion.. to preserve bold in this case: **`myFunction()`**

Currently, in the github style, the full font specification for code is overriding the bold. Suggest to use family specifically, to preserve bold when applied. Suggest to change lines 195-197 of github-markdown.css from

.markdown-body code {
  font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

to

.markdown-body code {
  font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

I also removed the overriding size here because the size is already set to 85% on line 421. And, that's good because if you were to have a ## `MonospacedHeading` you wouldn't want a fixed 14px size anyway. :smile_cat: