1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-16 03:24:29 +02:00

add ln-start-from for code sections to markdown

This commit is contained in:
Florian Klien
2023-05-12 14:22:00 +02:00
parent 0301ce58ab
commit 0b44308754
4 changed files with 39 additions and 7 deletions

View File

@@ -99,6 +99,25 @@
</script>
</section>
<!-- add optional line count offset, in this case 287 -->
<section data-markdown>
<script type="text/template">
## echo.c
```c [287: 2|4,6]
/* All of the options in this arg are valid, so handle them. */
p = arg + 1;
do {
if (*p == 'n')
nflag = 0;
if (*p == 'e')
eflag = '\\';
} while (*++p);
```
[source](https://git.busybox.net/busybox/tree/coreutils/echo.c?h=1_36_stable#n287)
</script>
</section>
<!-- Images -->
<section data-markdown>
<script type="text/template">