Сut breaks when clicking on the link in the header
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 52/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- markdown, react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Start with YFmStaticView and the transform configuration used to render Markdown. Reproduce the behavior in the linked Storybook preview by adding markdown-it-link-attributes with the target and rel attributes, then trace how clicking a link inside the cut header affects the cut's open/close state. Done means the cut continues to open and close after its header link is clicked.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi!
I am using YFmStaticView to display formatted html from markdown (your example in storybook).
When using markdown below, the "cut" breaks after clicking on the link. The problem is that when you click on the "Cut" header, it stops opening and closing content (I attached a screenshot when the "cut" is open, but there is no content).
{% cut "Link [https://ya.ru](https://ya.ru) link" %}
body
{% endcut %}
The problem occurs when the following options are added for transform:
import linkAttributes from 'markdown-it-link-attributes';
...
builder.configureMd(md => md.use(linkAttributes, {
attrs: {
target: '_blank',
rel: 'noopener noreferrer',
},
})
- Ngôn ngữ chính
- TypeScript
- Star
- 428
- Fork
- 48
- Merge trung bình
- 5 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 47
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của gravity-ui/markdown-editor
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
gravity-ui/markdown-editor#1452 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
gravity-ui/markdown-editor#1293 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Markup mode: `colorify` does not detect existing `{color}(...)` wrapper when switching colorsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
gravity-ui/markdown-editor#1129 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
gravity-ui/markdown-editor#1450 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
gravity-ui/markdown-editor#1331 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của gravity-ui/markdown-editor
Issue tương tự
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
openclaw/openclaw#199885 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
feature needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
BoardGamesEmpire/board-games-empire-backend#1306 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
sequant-io/sequant#1689 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100