We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tested the following code and it seems that the keyword argument "plugins" of Node#to_html does not make an effect on the version 1.1.2.
require 'commonmarker' puts Commonmarker::VERSION # => 1.1.2 code = <<~CODE ```ruby puts "hello" ``` CODE plugins = { syntax_highlighter: { theme: "InspiredGitHub" } } p Commonmarker.to_html(code, plugins: plugins) # => "<pre lang=\"ruby\" style=\"background-color:#ffffff;\"><code><span style=\"color:#62a35c;\">puts </span><span style=\"color:#183691;\">"hello"\n</span></code></pre>\n" doc = Commonmarker.parse(code) p doc.to_html(plugins: plugins) # => "<pre lang=\"ruby\"><code>puts "hello"\n</code></pre>\n" p doc.to_html # => "<pre lang=\"ruby\"><code>puts "hello"\n</code></pre>\n"
The text was updated successfully, but these errors were encountered:
Thank you for the report! I haven't had time to look into this but I will soon.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
I tested the following code and it seems that the keyword argument "plugins" of Node#to_html does not make an effect on the version 1.1.2.
The text was updated successfully, but these errors were encountered: