molivier / nest

Nest Pelican Template
https://www.molivier.com
GNU General Public License v2.0
123 stars 50 forks source link

Theme problems when adding line numbers in codeblocks #20

Open m-waka opened 6 years ago

m-waka commented 6 years ago

I just noticed that when line numbers are added the code block is not responsive anymore and its width can get larger than the normal content. However I am not sure how to fix it.

I enable line numbers by putting

MARKDOWN = {
  'extension_configs': {
    'markdown.extensions.codehilite': {'css_class': 'highlight', 'linenums': 'True'},
    'markdown.extensions.extra': {},
    'markdown.extensions.meta': {},
  },
  'output_format': 'html5',
}

into my pelicanconf.py It would be nice if the theme would support line numbers in the future.