-
-
Notifications
You must be signed in to change notification settings - Fork 90
Closed
Description
I am assuming the Description Lists extension actually means Definition Lists - I am unable to make it work.
On a side note, perhaps the option key should be renamed to definition_lists
regardless of how comark calls it?
This code does not produce the expected <dl>
<dt>
tags
require 'bundler/inline'
gemfile { gem 'commonmarker', '1.0.0.pre6' }
markdown = <<~MARKDOWN
~strikethrogh disabled to ensure options accepted~
Commonmark Definition
: Ruby wrapper for comrak (CommonMark parser)
MARKDOWN
extensions = { strikethrough: false, description_lists: true }
options = { extension: extensions, render: { hardbreaks: false } }
output = Commonmarker.to_html markdown, options: options
puts output
Output:
<p>~strikethrogh disabled to ensure options accepted~</p>
<p>Commonmark Definition
: Ruby wrapper for comrak (CommonMark parser)</p>
Metadata
Metadata
Assignees
Labels
No labels