Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

White space handling looks inconsistent between HTML block element vs HTML inline element

オープン
#303 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

@mamicicekel がすでに取り組んでいます。

2026年10月6日 から。

  • #312 @mamicicekel による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript
領域
tooling

調査の方向性

リンクされた CommonMark Dingus の例を再現し、block-element と inline-element の出力を参照先の CommonMark 0.31.2 specification と比較する。違いが意図的なものか parser bug かを判断する。完了条件は、期待される動作が確定し、必要に応じて具体的な変更と regression test が特定されていること。

索引モデルが issue の本文から書いたものです。

説明

Hi. I'm curious about why white space preservation / removal differs between <div> and <a> in following case:

https://spec.commonmark.org/dingus/?text=%3Cdiv%20class%3D%22abc%0A%20%20%20%20d%20%20e%20f%22%3Etext%3C%2Fdev%3E%0A%0A%3Ca%20class%3D%22abc%0A%20%20%20%20d%20%20e%20f%22%3Etext%3C%2Fa%3E

Input:

<div class="abc
    d  e f">text</dev>

<a class="abc
    d  e f">text</a>

Output:

<div class="abc
    d  e f">text</dev>
<p><a class="abc
d  e f">text</a></p>

I've read https://spec.commonmark.org/0.31.2/ but it's not obvious whether it's a bug or intentional.
I came from https://github.com/orgs/micromark/discussions/211.

主要言語
JavaScript
スター
1.6k
フォーク
234
平均マージ
1日 27分
マージ済み PR(30日)
1

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

commonmark/commonmark.js のほかの issue

commonmark/commonmark.js の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。