Skip to content

HTML block end condition with blank line that has space (U+0020) #135

Open
@MurakamiShinyu

Description

@MurakamiShinyu

Issue Details

VFMが準拠するCommonMark仕様で、HTML blockの終了条件として

End condition: line is followed by a blank line.

とあります。また、blank-line の定義として

A line containing no characters, or a line containing only spaces (U+0020) or tabs (U+0009), is called a blank line.

とあります。

したがって次のような HTML block の例で

<div class="custom">
  
  - List Item
  
</div>

- List Item の上の空白行に space (U+0020)があってもなくても結果は変わらないはずです。

しかし、vfmで試すとspaceがある場合、次の結果になります:

<div class="custom">- List Item</div>

spaceがない場合は次のように期待どおりの結果になります:

<div class="custom">
  <ul>
    <li>List Item</li>
  </ul>
</div>

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions