Fixed pygments for reStructuredText
This commit is contained in:
parent
eef3913aa4
commit
8afd26c606
75 changed files with 2469 additions and 75 deletions
|
@ -25,10 +25,13 @@ def export():
|
|||
|
||||
path = os.path.join(PYGMENTS_PATH, '%s.css' % style)
|
||||
formatter = HtmlFormatter(**opts)
|
||||
css_content = formatter.get_style_defs('.highlight')
|
||||
md_css = formatter.get_style_defs('.highlight')
|
||||
rst_css = formatter.get_style_defs('.literal-block')
|
||||
|
||||
with open(path, 'w') as f:
|
||||
f.write(css_content)
|
||||
with open(path, 'w+') as f:
|
||||
f.write(md_css)
|
||||
f.write('\n')
|
||||
f.write(rst_css)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue