academicpages / academicpages.github.io

Github Pages template for academic personal websites, forked from mmistakes/minimal-mistakes
https://academicpages.github.io
MIT License
12.35k stars 43.7k forks source link

Markdown not rendering syntax highlighting properly #228

Closed philastrophist closed 8 months ago

philastrophist commented 5 years ago

with the markdown in the _config.yml file as:

markdown: kramdown
highlighter: rouge
kramdown:
  input: GFM
  syntax_highlighter_opts:
    default_lang: html
    css_class   : 'syntax'

and the a post markdown file reading as:

(3 backticks) python
import pymc3 
(3 backticks)

and the css file generated by rougify style github > assets/css/syntax.css I get this:

image

There are no errors but the style is weird and there is a box in the top corner. How do I get it properly formatted like this guy: https://sacha.me/articles/jekyll-rouge?

rjzupkoii commented 8 months ago

The latest updates have helped to improve the syntax highlighting, but something like the referenced website would require a lot more work. If there is interest we could update things with a feature request, but presently it appears that the bug has been addressed and the remainder is by design.