LaTeX: syntax highlighting

pull/1548/head
Simon Legner 4 years ago
parent 776ec5a35d
commit f139802767

File diff suppressed because one or more lines are too long

@ -13,6 +13,11 @@ module Docs
css('h1, h2, h3, h4').each { |node| node.content = node.content.sub /^[0-9A-Z]+(\.[0-9]+)* /, '' }
css('pre').each do |node|
node.delete 'class'
node['data-language'] = 'latex'
end
doc
end
end

Loading…
Cancel
Save