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: test/generators/markdown/Markup.md
+41-12
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,8 @@ Here, we test the rendering of comment markup.
6
6
7
7
# Sections
8
8
9
-
Let's get these done first, because sections will be used to break up the rest of this test.
9
+
Let's get these done first, because sections will be used to break up the
10
+
rest of this test.
10
11
11
12
Besides the section heading above, there are also
12
13
@@ -16,39 +17,65 @@ and
16
17
17
18
### Sub-subsection headings
18
19
19
-
but odoc has banned deeper headings. There are also title headings, but they are only allowed in mld files.
20
+
but odoc has banned deeper headings. There are also title headings, but they
21
+
are only allowed in mld files.
20
22
21
23
### Anchors
22
24
23
-
Sections can have attached [Anchors](#anchors), and it is possible to [link](#anchors) to them. Links to section headers should not be set in source code style.
25
+
Sections can have attached [Anchors](#anchors), and it is possible to
26
+
[link](#anchors) to them. Links to section headers should not be set in
27
+
source code style.
24
28
25
29
#### Paragraph
26
30
27
31
Individual paragraphs can have a heading.
28
32
29
33
##### Subparagraph
30
34
31
-
Parts of a longer paragraph that can be considered alone can also have headings.
35
+
Parts of a longer paragraph that can be considered alone can also have
36
+
headings.
32
37
33
38
# Styling
34
39
35
-
This paragraph has some styled elements: **bold** and _italic_, **_bold italic_**, _emphasis_, __emphasis_ within emphasis_, **_bold italic_**, super<sup>script</sup>, sub<sub>script</sub>. The line spacing should be enough for superscripts and subscripts not to look odd.
40
+
This paragraph has some styled elements: **bold** and _italic_, **_bold
41
+
italic_**, _emphasis_, __emphasis_ within emphasis_, **_bold italic_**,
42
+
super<sup>script</sup>, sub<sub>script</sub>. The line spacing should be
43
+
enough for superscripts and subscripts not to look odd.
36
44
37
-
Note: _In italics _emphasis_ is rendered as normal text while _emphasis _in_ emphasis_ is rendered in italics.__It also work the same in [links in italics with _emphasis _in_ emphasis_.](#)_
45
+
Note: _In italics _emphasis_ is rendered as normal text while _emphasis _in_
46
+
emphasis_ is rendered in italics.__It also work the same in [links in
47
+
italics with _emphasis _in_ emphasis_.](#)_
38
48
39
49
`code` is a different kind of markup that doesn't allow nested markup.
40
50
41
-
It's possible for two markup elements to appear **next**_to_ each other and have a space, and appear **next**_to_ each other with no space. It doesn't matter **how**_much_ space it was in the source: in this sentence, it was two space characters. And in this one, there is **a**_newline_.
51
+
It's possible for two markup elements to appear **next**_to_ each other and
52
+
have a space, and appear **next**_to_ each other with no space. It doesn't
53
+
matter **how**_much_ space it was in the source: in this sentence, it was
54
+
two space characters. And in this one, there is **a**_newline_.
42
55
43
56
This is also true between _non-_`code` markup _and_`code`.
44
57
45
58
Code can appear **inside `other` markup**. Its display shouldn't be affected.
46
59
47
60
# Links and references
48
61
49
-
This is a [link](#). It sends you to the top of this page. Links can have markup inside them: [**bold**](#), [_italics_](#), [_emphasis_](#), [super<sup>script</sup>](#), [sub<sub>script</sub>](#), and [`code`](#). Links can also be nested _[inside](#)_ markup. Links cannot be nested inside each other. This link has no replacement text: [#](#). The text is filled in by odoc. This is a shorthand link: [#](#). The text is also filled in by odoc in this case.
50
-
51
-
This is a reference to [`foo`](#val-foo). References can have replacement text: [the value foo](#val-foo). Except for the special lookup support, references are pretty much just like links. The replacement text can have nested styles: [**bold**](#val-foo), [_italic_](#val-foo), [_emphasis_](#val-foo), [super<sup>script</sup>](#val-foo), [sub<sub>script</sub>](#val-foo), and [`code`](#val-foo). It's also possible to surround a reference in a style: **[`foo`](#val-foo)**. References can't be nested inside references, and links and references can't be nested inside each other.
62
+
This is a [link](#). It sends you to the top of this page. Links can have
Copy file name to clipboardexpand all lines: test/generators/markdown/Module.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,9 @@ Foo.
10
10
11
11
> unit
12
12
13
-
The module needs at least one signature item, otherwise a bug causes the compiler to drop the module comment (above). See [https://caml.inria.fr/mantis/view.php?id=7701](https://caml.inria.fr/mantis/view.php?id=7701).
13
+
The module needs at least one signature item, otherwise a bug causes the
0 commit comments