github / github/markup

[Bug] `~~~`s with an invalid language (like `~~~log`) render the encapsulated `>`/`<blockquote>` below the visual boundary of the `<pre><code>`.

未关闭
#1,851 19 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Ruby
星标
6k
派生
3.4k
PR 合并指标
30 天内没有已合并 PR

描述

#### Errata (Examples)

1. #### **Markdown Quotation Block**

> ```txt
> Evaluation Content
> ```

…(whose markup is undermentioned):

~~~MD
> ```txt
> Evaluation Content
> ```
~~~

1. #### **HTML Quotation Block**

…and the undermentioned:

> ```log
> Evaluation Content
> ```

…whose markup is undermentioned):

~~~MD
> ```log
> Evaluation Content
> ```
~~~

If you scroll on the latter, you shall see that it renders the blockquote line further than the actual content, as a consequence of the `

` statement being necessarily defined a line after the fenced code block content. However, this shouldn't occur, not least because it doesn't when defining a block quote using Markdown `>`s.

#### **Bitmap Depiction**

In case it doesn't render like that to you, what I see is undermentioned:

Image

#### My Environment

1.

~~~python
#!/usr/bin/env python3
import rpm, yaml
from datetime import datetime, timezone
from shutil import which
package = which("firefox-nightly")
header = next(
rpm.TransactionSet().dbMatch(
"basenames",
package
)
)
tags = (
"NAME",
"VERSION",
"RELEASE",
"ARCH",
"INSTALLTIME",
"SIZE",
"SIGPGP",
"SOURCERPM",
"BUILDTIME",
"BUILDHOST",
"PACKAGER",
"VENDOR",
)
properties = {}
for name in tags:
value = header[
getattr(
rpm,
f"RPMTAG_{name}"
)
]
if name in (
"INSTALLTIME",
"BUILDTIME"
):
value = (
datetime.fromtimestamp(
value,
timezone.utc
)
.isoformat(timespec="seconds")
.replace(
"+00:00",
"Z"
)
)
properties[name] = value
print(
yaml.safe_dump(
properties,
sort_keys=False,
default_flow_style=False,
)
)
~~~

1.

~~~YAML
NAME: firefox-nightly
VERSION: 157.0a1
RELEASE: '20260831085937'
ARCH: x86_64
INSTALLTIME: '2026-09-01T00:07:43Z'
SIZE: 400365634
SIGPGP: null
SOURCERPM: firefox-nightly-157.0a1-20260831085937.src.rpm
BUILDTIME: '2026-08-31T11:02:30Z'
BUILDHOST: 81a14f63898f
PACKAGER: null
VENDOR: Mozilla
~~~

#### Affected

1. [ ] [`containers/toolbox/issues/1272#issuecomment-1589445965`](https://github.com/containers/toolbox/issues/1272#issuecomment-1589445965)

1. [ ] [`rpm-software-management/dnf5/issues/191#issue-1481711385`](https://github.com/rpm-software-management/dnf5/issues/191#issue-1481711385)

1. [ ] [`gui-cs/Terminal.Gui/discussions/1738#discussioncomment-3537004`](https://github.com/gui-cs/Terminal.Gui/discussions/1738#discussioncomment-3537004)

1. [ ] [`JoKalliauer/cleanupSVG/issues/2#issuecomment-3700973845`](https://github.com/JoKalliauer/cleanupSVG/issues/2#issuecomment-3700973845)

1. [`dotnet/runtime/issues/122721#issue-3759026462`](https://github.com/dotnet/runtime/issues/122721#issue-3759026462)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。