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

Markdown: Unsupported parsing cases #133

Open
stdword opened this issue Apr 12, 2023 · 4 comments
Open

Markdown: Unsupported parsing cases #133

stdword opened this issue Apr 12, 2023 · 4 comments

Comments

@stdword
Copy link
Contributor

stdword commented Apr 12, 2023

Mldoc cannot parse following cases (but several of them successfully displays in Logseq).
But it is required to be done with mldoc to use this parser in plugin development separately from Logseq.

case markdown parsed as
horizontal line ___ & --- & *** plain
headings ### h3 Heading plain
blockquotes > Blockquotes can also be nested... plain
numbered lists 1. Lorem ipsum dolor sit amet plain
unordered lists - Lorem ipsum dolor sit amet plain
code block ```js
var foo = bar()
```
["Code", "` js\nvar foo = bar()\n"],
["Plain", "`"],
inline code ```var foo = bar()``` ["Code", "`var foo = bar()\n"],
["Plain", "`"],
table | A | B | \n | 1 | 2 | plain
inclusion url metadata not presented ![Logseq](https://logseq.com) ["Link", {
"full_text": "![Logseq](https://logseq.com)",
"url": ["Complex",{"protocol": "https", "link": "logseq.com"}],
"label": [ ["Plain", "Logseq"] ],
"metadata": ""}]
reference by id ![Alt text][id]
With a reference later
[id]: https://dojocat.jpg "The Dojocat"
plain
inline footnote Inline footnote^[Text of inline footnote] definition. plain
footnotes with bug in id assignment Footnote link[^first]
[^first]: Footnote
["Footnote_Reference",{"id": 1,"name": "first"}],
["Footnote_Reference",{"id": 2,"name": "first"}],
@stdword
Copy link
Contributor Author

stdword commented Apr 12, 2023

@tiensonqin Do you have plans on change anything in mldoc?

@Bad3r
Copy link

Bad3r commented Apr 12, 2023

@stdword I think I have noticed logseq team moving functionality from mldoc into clj/cljs to be used in Logseq. Not sure if mldoc will be around in the future.

@stdword
Copy link
Contributor Author

stdword commented Apr 13, 2023

@Bad3r this is very sad. I guess then we need a Plugin API to render the block contents to HTML with the flavour of Logseq Markup.

Probably you can help me, at least merge this PR?

@Bad3r
Copy link

Bad3r commented Apr 13, 2023

@Bad3r this is very sad. I guess then we need a Plugin API to render the block contents to HTML with the flavour of Logseq Markup.

Probably you can help me, at least merge this PR?

This is not confirmed only my guess. I would wait for someone from the Logseq team to respond.
I, unfortunately, do not have other methods of contacting the team other than GitHub or discord; hopefully, they will get around to it soon.

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