aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2020-07-13 19:08:42 +0200
committerJonas Smedegaard <dr@jones.dk>2020-07-13 19:08:42 +0200
commit65555c6db88a329741caaf3bdfc8824ee0360bc7 (patch)
treedac7249f46aab2429a8b7ff83e1149dc9295bca3
parent450b355fff75fdd297fe43913b83d914a5c8a621 (diff)
define which block types are considered descendant of which others
-rw-r--r--README.md7
1 files changed, 2 insertions, 5 deletions
diff --git a/README.md b/README.md
index 0e0038b..74904d8 100644
--- a/README.md
+++ b/README.md
@@ -296,7 +296,8 @@ And would produce the following HTML+RDFa:
### Block-cluster scope
-Hints in a block with no non-whitespace characters before or after the hints, followed by a different type or level of block, applies to the following block and any descendant blocks; or followed by a non-header non-list block, applies to the following block and any following siblings and any descendant blocks of any of them.
+Hints in a block with no non-whitespace characters before or after the hints, followed by a different type or level of block, applies to the following block and any contained or descendant blocks; or followed by a non-header non-list block, applies to the following block and any following siblings and any contained or descendant blocks of any of them.
+For the context of this definition, a paragraph or any container block (block which can contain other blocks) is considered to be descendent of a leaf block (block which cannot contain other blocks, e.g. a header or horisontal ruler).
If the resulting scope does not correspond to already generated html scope, then a div is added. In particular, when the resulting scope is the whole Markdown context then a Markdown parser targeting a full html document (not only a subset of body part as Markdown generally does) may apply the hints to the `<html>` tag.
```markdown
@@ -334,10 +335,6 @@ I once read this:
</div>
```
-:::danger
-:heavy_exclamation_mark: FIXME: Uncertain which exact block types are considered descendant of which others.
-:::
-
### Link definition scope
Hints not immediately following an explicit span, in a link definition block with no non-whitespace characters after the hints, applies to all references to that definition, even if no link is defined.