saberland/saber

feature: support line number in code blocks #178

egoist posted onGitHub

<!-- Please don't delete this template or we'll close your issue -->

<!-- Before creating an issue please make sure you are using the latest version of Saber. -->

Feature request

<!-- Please ask questions via following several ways. -->

<!-- https://chat.saber.land/ -->

<!-- https://stackoverflow.com/questions/ask?tags=saberjs -->

What problem does this feature solve?

Show line numbers in code blocks.

What does the proposed API look like?

Globally enabled:

markdown:
  lineNumbers: true

Toggle line numbers per code block:

```js {lineNumbers:true}
console.log(42)
```

How should this be implemented in your opinion?

Implement it in the markdown/highlight-plugin.js

Are you willing to work on this yourself?

If no one else will.


Fund this Issue

$40.00
Rewarded

Rewarded pull request

Recent activities

lubien was rewarded by egoist for saberland/saber# 178
almost 6 years ago
lubien submitted an output to  saberland/ saber# 178
almost 6 years ago