Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unclosed fenced code block doesn't always run until the end of the document #6

Closed
balpha opened this issue Sep 1, 2014 · 0 comments

Comments

@balpha
Copy link
Contributor

balpha commented Sep 1, 2014

Section 4.5 (Fenced code blocks) says (emph. mine)

If the end of the document is reached and no closing code fence has been found, the code block contains all of the lines after the opening code fence.

but this isn't necessarily true; it may also be the end of the containing block that ends the fenced block. Example 137 is an instance of this:

> ```
foo
```

renders as

<blockquote>
<pre><code></code></pre>
</blockquote>
<p>foo</p>
<pre><code></code></pre>

I'm not making this a pull request since I'm not 100% on the best wording here.

@jgm jgm closed this as completed in 4bc4bf4 Sep 1, 2014
jgm added a commit that referenced this issue Jun 11, 2018
...in start condition #6 of HTML blocks.  meta tags are used
in some inline contexts (though this isn't valid HTML5), e.g.
in schema.org.  Example:

```
This paragraph is closed right after an opening span:
<span itemprop="contentLocation" itemscope itemtype="https://schema.org/City">
  <meta itemprop="name" content="Springfield">
  <span itemprop="address" itemscope itemtype="https://schema.org/PostalAddress">
    <meta itemprop="addressCountry" content="US">
    <span itemprop="addressLocality">Springfield</span>,
    <span itemprop="addressRegion">Oregon</span>
    <meta itemprop="postalCode" content="97477">
  </span>
</span>
```

Closes #527.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant