Skip to content

Description lists not working #216

@DannyBen

Description

@DannyBen

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions