You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be beneficial if YFM supported line highlighting within code blocks. This feature is frequently used in documentation to draw attention to critical lines of code, demonstrate changes, or emphasize specific parts of the code.
Proposed Solution
Introduce a new prop, {1,3-5}, within the language meta string of code blocks.
Syntax Example
```javascript {1}
const example = "This is a code block.";
console.log(examples);
It would be beneficial if YFM supported line highlighting within code blocks. This feature is frequently used in documentation to draw attention to critical lines of code, demonstrate changes, or emphasize specific parts of the code.
Proposed Solution
Introduce a new prop,
{1,3-5}
, within the language meta string of code blocks.Syntax Example
Reference: https://docusaurus.io/docs/markdown-features/code-blocks#line-numbering
The text was updated successfully, but these errors were encountered: