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.

Add option to skip some code blocks

See original GitHub issue

docusaurus-preset-shiki-twoslash is incompatible with Docusaurus’s live code blocks, since it gobbles up all of the code blocks. I only want Shiki/Twoslash on some of my code blocks, while others I want to be interactive code playgrounds.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
frencojobscommented, Jul 10, 2021

Oh yes, thanks for the issue. I’m pretty confident docusaurus will handle the rest if we could just pass the props correctly to it. In this case, jsx live requires that we need to pass the live prop to the docusaurus which we currently don’t.

To prevent further incidents, we should just pass the parsed meta keys whether important or not. It’ll make things much easier. In worst scenario, the user might need to write a line or two to override/swizzle our MDXComponents file.

I personally think the current implementation of the parseCodeInfo is kinda sphegatti. I’ll open a PR soon with a fix for this.

0reactions
soeasyjxcommented, Aug 19, 2022

I want to know how to solve it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Where could I add option to disable auto compiler detection?
Where could I add option to disable auto compiler detection? I am thinking a check box that defaults to checked in. Setting ->...
Read more >
Option to ignore code blocks (.js) or individual links in .html ...
I've been implementing PWA features in my app and I've encountered a few roadblocks... 1.) All the icons in my .webmanifest and head...
Read more >
How can I skip some block content while reading in Perl
Perl already has an operator to keep track of blocks. It's called the "flip-flop" operator: Try this out: while ( <DATA> ) {...
Read more >
Skip to main content - IT Accessibility - NC State University
Having a skip to main content link appear when it receives keyboard focus. The text is hidden offscreen in a manner that allows...
Read more >
Code blocks - Squarespace Help Center
Use code blocks to add custom code to a page, blog post, sidebar, footer, or other content area. Code blocks are good options...
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