WikiFormatting.map do |format|
format.register :textile
- if Object.const_defined?(:CommonMarker)
+ if Object.const_defined?(:Commonmarker)
format.register :common_mark, label: 'CommonMark Markdown (GitHub Flavored)'
end
end
end
end
- if Object.const_defined?(:CommonMarker)
+ if Object.const_defined?(:Commonmarker)
def test_toc_with_markdown_formatting_should_be_parsed
with_settings :text_formatting => 'common_mark' do
assert_select_in textilizable("{{toc}}\n\n# Heading"), 'ul.toc li', :text => 'Heading'