There seem to be several ambiguities in the grammar. Consider the following code:
# Heading #
If I’m understanding the grammar correctly, this can be parsed as:
• A heading with text “Heading”
• A heading with text “Heading #”
• A paragraph with text “# Heading #”