Skip to content
New issue

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

Exception thrown when parsing lists #181

Open
jwr opened this issue Mar 31, 2022 · 1 comment
Open

Exception thrown when parsing lists #181

jwr opened this issue Mar 31, 2022 · 1 comment

Comments

@jwr
Copy link
Contributor

jwr commented Mar 31, 2022

When switching from 1.10.9 to 1.11.0 I noticed that markdown-clj is no longer able to parse some of my input files, throwing an exception.

I managed to narrow it down to this:

  (markdown/md-to-html-string "
 * A
* B")

(note the space before the first bullet point)

This results in:

              Numbers.java: 1095  clojure.lang.Numbers/ops
              Numbers.java:  261  clojure.lang.Numbers/gt
                lists.cljc:   18  markdown.lists$add_row/invokeStatic
                lists.cljc:   10  markdown.lists$add_row/invoke
                lists.cljc:   36  markdown.lists$ul/invokeStatic
                lists.cljc:   32  markdown.lists$ul/invoke
                lists.cljc:   68  markdown.lists$li/invokeStatic
                lists.cljc:   44  markdown.lists$li/invoke
                  core.clj:   24  markdown.core/init-transformer/fn/fn
     PersistentVector.java:  343  clojure.lang.PersistentVector/reduce
                  core.clj: 6885  clojure.core/reduce
                  core.clj: 6868  clojure.core/reduce
                  core.clj:   22  markdown.core/init-transformer/fn
                  core.clj:  102  markdown.core/md-to-html
@yogthos
Copy link
Owner

yogthos commented Mar 31, 2022

@jecneps looks like we might have some regressions from the fix here #179

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants