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

spec: Markdown inside HTML blocks #4

Closed
MurakamiShinyu opened this issue Jan 26, 2020 · 4 comments
Closed

spec: Markdown inside HTML blocks #4

MurakamiShinyu opened this issue Jan 26, 2020 · 4 comments
Assignees
Labels
spec Spec related thing
Projects
Milestone

Comments

@MurakamiShinyu
Copy link
Member

How to enable markdown inside HTML blocks? There are differences between major Markdown dialects:

I think Pandoc Markdown's method is most useful and easy to understand.

Examples:

<div class="foo">
* Here, markdown is **enabled** in Pandoc Markdown
</div>
<div class="foo">

* Here, markdown is **enabled** in GFM and CommonMark
</div>
<div class="foo" markdown="1">
* Here, markdown is **enabled** in PHP Markdown Extra
</div>
@MurakamiShinyu MurakamiShinyu added the spec Spec related thing label Jan 26, 2020
@MurakamiShinyu MurakamiShinyu added this to To do in Spec via automation Jan 26, 2020
@uetchy
Copy link
Member

uetchy commented Jan 29, 2020

Consecutive HTML blocks should be treated as plain HTML. Parsing content inside HTML and handling them as Markdown could produce an unwanted effect.

For styled divs with Markdown, there's already Fenced blocks #5.

@MurakamiShinyu
Copy link
Member Author

Consecutive HTML blocks should be treated as plain HTML.

Ok, it will be compatible with GFM and CommonMark, and also default behavior of the remark parser.

@uetchy uetchy changed the title spec: markdown inside HTML blocks spec: Markdown inside HTML blocks Jan 29, 2020
@uetchy uetchy moved this from To do to In progress in Spec Feb 12, 2020
@uetchy uetchy moved this from In progress to Review in progress in Spec Jun 13, 2020
@uetchy uetchy moved this from Review in progress to Reviewer approved in Spec Jun 14, 2020
@uetchy uetchy added this to the v1 milestone Jul 1, 2020
@uetchy uetchy added this to In progress in v1 Jul 1, 2020
@uetchy uetchy removed this from the v1 milestone Jul 1, 2020
@uetchy uetchy moved this from In progress to Done in v1 Jul 1, 2020
@akabekobeko akabekobeko self-assigned this Jan 16, 2021
@akabekobeko
Copy link
Member

本件はドキュメントに VFM が CommonMark/GFM のスーパーセットであることを記述することを持って close 予定。

@akabekobeko
Copy link
Member

すでに docs/vfm.md

VFM is implemented top on CommonMark and GFM.

と言及されているので close します。結論としては途中のコメントにもありますが現状は GFM 準拠ということになります。

もし GFM と異なる記法 (機能) で対応を希望される場合は、その旨をコメントのうえ Reopen してください。

Spec automation moved this from Reviewer approved to Stable Apr 3, 2021
@akabekobeko akabekobeko added this to the v1.0.0 milestone Apr 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec Spec related thing
Projects
No open projects
Spec
  
Stable
v1
  
Done
Development

No branches or pull requests

3 participants