Skip to content

Markdown not being parsed correctly with classifier gem #2676

Description

@ivantsepp

Noticed this weird html at http://jekyllrb.com/docs/configuration/#redcarpet:
configuration

I traced it back to this commit: 4cc6a0f. And I eventually figured out that require "classifier" was the problem. The simplest temporary fix is to remove this line. But anyways, I think the issue is some conflict between the classifier gem and kramdown.

[1] pry(main)> require 'kramdown'
=> true
[2] pry(main)> puts Kramdown::Document.new("- a\n\n    paragraph\n\n        # ...ruby code\n\n    paragraph\n- b\n").to_html
<ul>
  <li>
    <p>a</p>

    <p>paragraph</p>

    <pre><code>  # ...ruby code
</code></pre>

    <p>paragraph</p>
  </li>
  <li>
    <p>b</p>
  </li>
</ul>
=> nil

That works as normal. But when we include classifier:

[1] pry(main)> require 'kramdown'
=> true
[2] pry(main)> require 'classifier'
Notice: for 10x faster LSI support, please install http://rb-gsl.rubyforge.org/
=> true
[3] pry(main)> puts Kramdown::Document.new("- a\n\n    paragraph\n\n        # ...ruby code\n\n    paragraph\n- b\n").to_html
<ul>
  <li>a</li>
</ul>

<pre><code>paragraph

    # ...ruby code

paragraph - b
</code></pre>
=> nil

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions