Skip to article frontmatterSkip to article content

{code-block}

prefer to use the code-block directive
more details here https://mystmd.org/guide/code

code blocks

:linenos:

1
2
3
4
5
6
7
one
two
three
four
five
six
seven

:emphasize-lines:

must use linenos too, otherwise it won’t trigger

1
2
3
4
5
6
7
one
two
three
four
five
six
seven

filename

my-numbers.txt
one
two
three
four
five
six
seven

{literalinclude}

to show stuff - possible an extract - from a local file (not working in jlab)

plain inclusion of separate file in the repo

apparently this is hopeless with jlab; works fine in jb2 though..

Makefile

include Makefile.book2
include Makefile.style2
include Makefile.prune
NOTEBOOKS := $(wildcard [0-9]*.md)
NBNORMFLAGS = -t 1 -L Licence --license-delete -S _static/style --style-delete
include Makefile.norm

partial

same between style (inclusive) and wildcard (exclusive)

Makefile
include Makefile.style2
include Makefile.prune
directivehow it works
start-atinclusive
start-afterexclusive
end-atinclusive
end-beforeexclusive

the file name

my-fake-name

include Makefile.book2
include Makefile.style2
include Makefile.prune
NOTEBOOKS := $(wildcard [0-9]*.md)
NBNORMFLAGS = -t 1 -L Licence --license-delete -S _static/style --style-delete
include Makefile.norm

emphasis lines

do not put spaces in the line list

:linenos: true
:emphasize-lines: 2,4,6
Makefile
1
2
3
4
5
6
7

include Makefile.book2
include Makefile.style2
include Makefile.prune
NOTEBOOKS := $(wildcard [0-9]*.md)
NBNORMFLAGS = -t 1 -L Licence --license-delete -S _static/style --style-delete
include Makefile.norm