question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi!

remark is switching to a new parser (and compiler) internally (micromark, remarkjs/remark#536), which will break several of these plugins. Several of the remark plugins, such as frontmatter, footnotes, math, a new remark-gfm, and a couple others, will update soon too. Those might server well as inspiration on how to tokenize with micromark in remark. There are several micromark extensions already as well (which deal with tokenizing markdown), and corresponding mdast extensions, which deal with mapping those tokens to mdast.

Anyway, feel free to ask me questions!

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:12
  • Comments:20 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
StaloneLabcommented, Apr 9, 2021

We are planning to update them all at once, but the migration should start fairly soon. In fact, I already started working on it for some plugins (but not remark-custom-blocks). If you are interested in working on remark-custom-blocks, I’d would be happy to accept the pull request, and can arrange to publish a version without problem. Please note however that this will require significant structural changes; here are my current thoughts on how we are going to do it:

  • publish a new package micromark-extension-custom-blocks, that will in the end contain both a micromark tokenizer (lib/index.js) and an HTML serializer;
  • update the current remark-custom-blocks to use the tokenizer mentioned above, and render an AST similar to the one we generate today.

In fact, I’m planning to initialize a specific branch for working on micromark plugins. The best you can do is maybe to wait for it to get created as it will provide an plugin example (micromark-extension-kbd). I can arrange to do it next week, so stay tuned, I’ll post here when it’s done. You can also of course start working on it by now, and we will integrate it after. There is a great margin on what we can do as the migration is just getting started.

5reactions
StaloneLabcommented, Oct 4, 2020

Thanks a lot for having taken time to inform us on this issue.

I’ll experiment with micromark in the upcoming weeks, and ask you if I have any questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

remark@next (13) · Issue #27 · elviswolcott/remark-admonitions ...
Hi! remark is switching to a new parser (and compiler) internally (micromark, remarkjs/remark#536), which will break this plugin.
Read more >
United States v. Jones, No. 21-3910 (6th Cir. 2022)
Decided and Filed: December 13, 2022Before: MOORE, GIBBONS, and LARSEN, Circuit Judges. COUNSELON BRIEF:Terra L. Bay, Chattanooga, Tennessee, for Appellant.
Read more >
D109737 [LTO] Emit DebugLoc for dead function in optimization ...
Currently, the dead functions information getting from optimizations remarks does not contain debug location, but knowing where these dead functions locate ...
Read more >
MORE AVAILABLE PRINTS - Collecting Japanese Prints
... Flute by Moonlight MEDIUM: Woodblock print DATE: 1883 DIMENSIONS: 13 3/4 x ... the rogue a gift of a fine robe with...
Read more >
Secret Santa - Events - S.A. Communiqué
Then make sure to join on the 13th of December for Secret Santa We ... General remark: Next to the present...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found