diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-05-08 22:27:56 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-05-08 22:33:11 -0400 |
| commit | b151b76cbe68375061cb1360b1150d6943c418ce (patch) | |
| tree | 50457f0e5fb71c39f324f8a61fefbe1a487f6218 /postcss.config.js | |
| parent | da959c89bced65df94d393350302e200afaec5c2 (diff) | |
Prevent double-indenting of the first line of a code block.
For reasons known only to the author, marked emits code blocks as
<pre><code>your code here</code></pre>
Inline code, on the other hand, is emitted as
<p>Non-code text <code>code text</code> non-code text.</p>
In d15bfb2b9a4872cba99bc966fe5c9c4399b3323c, we added a rule to give inline code nicer leading and trailing space, so that the borders don't directly abut the letters. However, we neglected to consider code blocks; the padding added for inline code also affected their first line, pushing it in slightly. This removes the padding from `<code>` when it is a direct child of a `<pre>`, as per the markup emitted by marked.
Diffstat (limited to 'postcss.config.js')
0 files changed, 0 insertions, 0 deletions
