Repository navigation
Add raw.line - #2341
Add raw.line#2341
raw.line#2341Conversation
|
Maybe we could rename |
I didn't think of that, I will rename it ;) |
|
What about about number/total instead of number/first/last? seems more flexible. |
Co-authored-by: Laurenz <[email protected]>
Co-authored-by: Laurenz <[email protected]>
The main reason why I didn't do it was that (initially) I had a hard time doing it for typst code because I didn't want to manually split/iterate over the code to count the number of lines, but I think there is a nicer way, I'll give it a try. |
|
What is the nicer way? I think iterating the code once to count the lines should be pretty cheap. |
The nicer way would be doing it as you're iterating over the lines, but it turns out to not really work since I would need a second pass to update all of them anyway. So I added a |
|
Thanks once more! |
Adds a new sub-element called
raw.linethat allows access to individual lines of stylized code.The
raw.linecontains the following properties:Line of raw code can be either individually
show-ruled or accessed on a synthesized field calledlinesonraw.It allows the following:
A big thank you to @laurmaedje and @edhebi for the inspiration and the help 🎉