syntax highlighting

pull/2375/head
Gergely Gombos 2 months ago
parent 6cff40e729
commit 42ec919cd8

@ -33,6 +33,14 @@ module Docs
node.before(node.children).remove
end
# Syntax highlighting
css('pre br').each do |node|
node.replace("\n")
end
css('pre').each do |node|
node['data-language'] = 'jsx'
end
doc
end
end

Loading…
Cancel
Save