Skip to content

Commit 1ecb455

Browse files
kyu08claude
andauthored
見出しと ## ### などのMarkdown記号の間隔を狭める (#233)
* heading要素の先頭に##, ### などを表示する CSSの::before疑似要素を使用して、各見出しレベル(h1-h6)の先頭に 対応するMarkdown記号(#, ##, ###など)を表示するように実装。 記号の色はグレー(--color-gray)に設定し、見出しテキストとの間に 8pxのマージンを追加。 Fixes #231 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs: スクリーンショットを追加 heading要素にMarkdown記号が表示されている様子のスクリーンショット 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs: スクリーンショットを更新 間隔を調整した後の見た目を反映 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * style: Markdown記号とタイトルの間隔を0に変更 margin-rightを0に設定し、記号とタイトルの間に間隔がないように変更 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs: スクリーンショットを更新 マージン0に変更した後の見た目を反映 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * style: Markdown記号の半角スペースを削除し間隔を2pxに変更 - content内の半角スペースを削除(例: "## " → "##") - margin-rightを0から2pxに変更 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs: スクリーンショットを更新 半角スペース削除とmargin-right 2pxの変更を反映 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs: スクリーンショットを削除 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 828c885 commit 1ecb455

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

static/style.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,33 @@ h1, h2, h3, h4, h5, h6 {
3030

3131
/* Markdown記号の表示 (h1は記事タイトルに使用されるため除外) */
3232
h2::before {
33-
content: "## ";
33+
content: "##";
3434
color: var(--color-gray);
35-
margin-right: 8px;
35+
margin-right: 2px;
3636
}
3737

3838
h3::before {
39-
content: "### ";
39+
content: "###";
4040
color: var(--color-gray);
41-
margin-right: 8px;
41+
margin-right: 2px;
4242
}
4343

4444
h4::before {
45-
content: "#### ";
45+
content: "####";
4646
color: var(--color-gray);
47-
margin-right: 8px;
47+
margin-right: 2px;
4848
}
4949

5050
h5::before {
51-
content: "##### ";
51+
content: "#####";
5252
color: var(--color-gray);
53-
margin-right: 8px;
53+
margin-right: 2px;
5454
}
5555

5656
h6::before {
57-
content: "###### ";
57+
content: "######";
5858
color: var(--color-gray);
59-
margin-right: 8px;
59+
margin-right: 2px;
6060
}
6161

6262
html,

0 commit comments

Comments
 (0)