You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-7Lines changed: 27 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,6 @@ and to practice "literate programming" using markdown and OCaml.
13
13
The test mode allows to ensure that shell scripts and OCaml fragments
14
14
in the documentation always stays up-to-date.
15
15
16
-
The blocks in markdown files can be parameterized by `mdx`-specific labels, that
17
-
will change the way `mdx` interprets the block.
18
-
The syntax is: `<!-- $MDX labels -->`, where `labels` is a list of valid labels
19
-
separated by a comma. This line has to immediately precede the block it is
20
-
attached to. Examples are given in the following sections.
21
-
This syntax is the recommended way to define labels since `mdx` 1.7.0, to use the previous syntax please refer to the [mdx 1.6.0 README](https://github.com/realworldocaml/mdx/blob/1.6.0/README.md).
22
-
23
16
`mdx` is released as a single binary (called `ocaml-mdx`) and
24
17
can be installed using opam:
25
18
@@ -32,6 +25,33 @@ If you want to contribute or hack on the project, please see the
32
25
33
26
### Supported Extensions
34
27
28
+
#### Labels
29
+
30
+
The blocks in markdown files can be parameterized by `mdx`-specific labels, that
31
+
will change the way `mdx` interprets the block.
32
+
33
+
The syntax is: `<!-- $MDX LABELS -->`, where `LABELS` is a list of valid labels
34
+
separated by a comma. This line has to immediately precede the block it is
35
+
attached to.
36
+
37
+
<!-- $MDX LABELS -->
38
+
```ocaml
39
+
```
40
+
41
+
This syntax is the recommended way to define labels since `mdx` 1.7.0, to use
0 commit comments