Skip to content

Commit fccfbc7

Browse files
panglesdjonludlam
authored andcommitted
Doc: improve doc on implicit ending of blocks
1 parent 3c57999 commit fccfbc7

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

doc/odoc_for_authors.mld

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,10 @@ and ordered lists:
251251
{- <item 2>}
252252
{- <item 3>}}
253253
v}
254+
255+
Lists can contain block elements, apart from {{!sections}headings} and
256+
{{!tags}tags}.
257+
254258
There is also an abbreviated syntax for lists. The above could be written:
255259
{v
256260
- <item>
@@ -264,6 +268,9 @@ and
264268
+ <item 3>
265269
v}
266270

271+
In the abbreviated synyax, lists are ended by a blank line, or anything that
272+
cannot be part of a list item (a heading or a tag).
273+
267274
{3:code_blocks Code Blocks}
268275

269276
There are various ways of inserting code elements in your documentation.
@@ -520,9 +527,13 @@ i.e., there shouldn't be any [odoc] markup.
520527

521528
{3 Block Tags}
522529

523-
These tags have a block of potentially marked-up text associated with them,
524-
and occasionally some more data too. The block of text is implicitly ended by a
525-
new line, a heading or another tag.
530+
These tags have a block of potentially marked-up text associated with them, and
531+
occasionally some more data too.
532+
533+
The content of a block tag can be any markup, apart from {{!sections}headings}
534+
and other tags. Note that compared to ocamldoc, block tags do not extend to the
535+
end of the docstring. Instead, they are ended by a blank line, or a block that
536+
cannot be included in (a heading or another tag).
526537

527538
- [@deprecated <text>] - marks the element as deprecated. [text] should describe
528539
when the element was deprecated, what to use as a replacement, and possibly

0 commit comments

Comments
 (0)