imagej / imagej/imagej.github.io

Implement inline line numbering

Open
#128 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
30
Forks
203
Avg merge
1h 50m
Merged PRs (30d)
1

Description

Right now, if you want line numbers, the best way is to use `include code` to embed code from GitHub. But it would be nice to have a robust option for doing line numbering for inline code snippets as well. (There is `{% highlight linenos %}` but it [apparently has problems](https://hydejack.com/docs/writing/#adding-code-blocks).) See [this blog post](https://www.bytedude.com/jekyll-syntax-highlighting-and-line-numbers/) for a better way forward.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the existing `{% highlight linenos %}` approach and the linked Jekyll syntax-highlighting blog post. Inspect how inline code snippets are rendered and define a robust line-numbering option that works for them; done means inline snippets display line numbers without relying on GitHub includes or the documented highlight workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
jekyll
Domain
documentation
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.