Parsing markdown files

14 Likes

news-congrads-kkluyshnik-02-04-19.jpg – you have earned Featured Contributor Badge 2015-11-02_10-07-11.png
Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

Interesting work! Can you post the link to MarkdownParse repository you mention?
Is it this one: GitHub - dishmint/Markdown2WL: Lex and Parse Markdown in Wolfram Language · GitHub ?

Thanks Anton! Yeah, that’s the one.

1 Like

I think you should update your notebook to include the line:

Import["https://raw.githubusercontent.com/dishmint/Markdown2WL/master/Parser/MarkdownParse.wl"]

Or something similar…

1 Like

Ah, the package file, not the repository, I understand now. Sure I’ll add that asaic, having some trouble with cloud nbs atm.

This has potential, Faizon. I think it can really fly as a conversion/migration-tool plug-in for markdown editors with an active community, such as Obsidian.md and others. Simple single-command-set of hotkeys could manipulate note formats contained there.

2 Likes

I much more productized effort of converting Markdown to Mathematica is described in “Markdown::Grammar”.

(Yes, the statement above is both obnoxious and self-promoting…)

1 Like

Minor FYI — I’ve refactored my parsing strategy and am working through updating tests. I’ve refactored about 100 tests so far, with ~600 remaining.

Most of the paclet component tests have been updated, the rest are for CommonMark v0.30.

I don’t have a timeline as the updating is a bit tedious, but I will write a new post and link here once complete.