Skip to content

Commit db0b685

Browse files
committed
Add changes and @SInCE docstrings to the Math* constructors
1 parent a47de43 commit db0b685

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

CHANGES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
2.0.0
2+
-----
3+
4+
- New inline and display math markup (@giltho, #5)
5+
6+
1.0.1
7+
-----
8+
9+
- OCaml 5.0 support (@talex5, #6)
10+
111
1.0.0
212
-----
313

src/ast.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ type inline_element =
2323
| `Reference of
2424
reference_kind * string with_location * inline_element with_location list
2525
| `Link of string * inline_element with_location list
26-
| `Math_span of string ]
26+
| `Math_span of string (** @since 2.0.0 *)
27+
]
2728
(** Inline elements are equivalent to what would be found in a [span] in HTML.
2829
Mostly these are straightforward. The [`Reference] constructor takes a triple
2930
whose second element is the reference itself, and the third the replacement
@@ -42,7 +43,7 @@ type nestable_block_element =
4243
[ `Unordered | `Ordered ]
4344
* [ `Light | `Heavy ]
4445
* nestable_block_element with_location list list
45-
| `Math_block of string ]
46+
| `Math_block of string (** @since 2.0.0 *) ]
4647
(** Some block elements may be nested within lists or tags, but not all.
4748
The [`List] constructor has a parameter of type [\[`Light | `Heavy\]].
4849
This corresponds to the syntactic constructor used (see the

0 commit comments

Comments
 (0)