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

Đang mở
#1,851 19 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
markdown, ruby
Lĩnh vực
content

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện các ví dụ fenced-code trong github/markup, so sánh một ngôn ngữ không hợp lệ như log với dạng blockquote > của Markdown và các ví dụ về ngôn ngữ hợp lệ. Được xem là hoàn tất khi blockquote vẫn nằm trong ranh giới pre/code hiển thị thay vì kéo dài xuống bên dưới; issue không cung cấp tệp hoặc test cụ thể nào để bắt đầu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Errata (Examples)
  1. Markdown Quotation Block
    Evaluation Content
    

    …(whose markup is undermentioned):

    > ```txt
    > Evaluation Content
    > ```
    
  2. HTML Quotation Block

    …and the undermentioned:

    Evaluation Content
    

    …whose markup is undermentioned):

    > ```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 <blockQuote> 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. #!/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,
    	)
    )
    

  2. 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

  2. rpm-software-management/dnf5/issues/191#issue-1481711385

  3. gui-cs/Terminal.Gui/discussions/1738#discussioncomment-3537004

  4. JoKalliauer/cleanupSVG/issues/2#issuecomment-3700973845

  5. dotnet/runtime/issues/122721#issue-3759026462

Ngôn ngữ chính
Ruby
Star
6k
Fork
3.4k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/markup

Tất cả issue của github/markup

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.