200ok-ch / org-parser

org-parser is a parser for the Org mode markup language for Emacs.
GNU Affero General Public License v3.0
316 stars 15 forks source link

Link parse failure in org file #30

Closed kimo-k closed 3 years ago

kimo-k commented 3 years ago

file: test.org:

[[https://example.com][link]]

output of lein run test.org:

[[:content "[[https://example.com][link]]\n"]]

expected output:

[[:link-format [:link [:link-ext [:link-ext-other
                                          [:link-url-scheme "https"]
                                          [:link-url-rest "//example.com"]]]]
          [:link-description "link"]]]

Looking through the grammar but I don't see any obvious reason this fails. Any ideas?

Thanks for this nice & healthy library! Org-mode is underrated.

schoettl commented 3 years ago

Thank you for the report! The fix for this is pending in PR #27

I hope we can soon finish and merge it.

kimo-k commented 3 years ago

Thanks for the quick update. I'm on your PR now, works great.

schoettl commented 3 years ago

Nice to hear!

Please be aware, that the parse tree structure will change every now and then – as long we don't have a stable release. That's unavoidable when refactoring or changing the EBNF.