From 65555c6db88a329741caaf3bdfc8824ee0360bc7 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 13 Jul 2020 19:08:42 +0200 Subject: define which block types are considered descendant of which others --- README.md | 7 ++----- 1 file 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 `` tag. ```markdown @@ -334,10 +335,6 @@ I once read this: ``` -:::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. -- cgit v1.2.3