feat: Obsidian-style [[wikilinks]] in content
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Start with Fanstatic/Helpers/SiteHelper.cs to see how Markdig extensions are registered, then read Parsers/RefShortcodeParser.cs for reference resolution and its error handling. Inspect the test conventions in Fanstatic.Test/ and fixture sites in .TestSites/; run ./build.sh test. Done means the acceptance cases resolve to expected permalinks, unresolved links log errors, and MissingWikiLinkAsError: true fails the build.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Current State
Markdown content cannot express Obsidian-style [[wikilinks]]. Markdig's UseAdvancedExtensions() (Fanstatic/Helpers/SiteHelper.cs:18-20)
has no wikilink extension, so [[target]] renders as literal text. Hugo sites resolve [text](_)
links through a _markup/render-link.html hook; that is tracked separately by #34.
Tasks:
- New Markdig inline extension recognizing
[[target]]and[[target|label]](Helpers/WikiLinkExtension.cs) - Resolve
targetmirroringref/relref(Parsers/RefShortcodeParser.cs): a content path such as
posts/foo.mdor/posts/foo.md, and a taxonomy target such astags/sucos; a bare[[sucos]]
tries a taxonomy term first, then a page by path/name. Language and output format default to the
calling page's. - Unresolved target renders a link to
./and logs an error (build keeps going), matchingRefShortcodeParser -
fanstatic.yamlsettingMissingWikiLinkAsError(bool, defaultfalse) to escalate unresolved
wikilinks to build-failing errors - Alias resolution is intentionally out of scope (aliases are a post-processed page element)
Tests live in Fanstatic.Test/ (xUnit + NSubstitute); fixture sites in .TestSites/. Run ./build.sh test; new/changed methods need CRAP ≤ 15 and ≥ 75 % line coverage.
Acceptance Criteria:
- Fixture site:
[[posts/foo.md]],[[tags/x]], and bare[[x]]resolve to the expected permalinks;
[[unknown]]renders./with an error logged; withMissingWikiLinkAsError: truethe build fails.
Related:
- #33 (Phase 3 epic, parent)
- #34 (render hooks for links and images; wikilink output can later route through it)
- #40 (Markdown extensions configurable in YAML)
- Ngôn ngữ chính
- C#
- Star
- 1
- Fork
- 0
- Merge trung bình
- 7 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 MASS4ORG/Fanstatic
-
c:templates p:low size:S t:task
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
c:content good first issue p:low size:S t:feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
Maintainer thường phản hồi trong vòng 1 ngày
-
c:templates p:medium size:M t:feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
c:content p:medium size:L t:feature
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
c:templates p:medium size:S t:feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 57/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của MASS4ORG/Fanstatic
Issue tương tự
-
clawsweeper:fix-shape-clear clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr clawsweeper:not-repro-on-main impact:ux-release-blocker issue-rating: 🦪 silver shellfish P0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
openclaw/openclaw-windows-node#1843 · 1 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 66/100
-
kind:ux size:S type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
elsa-workflows/elsa-foundation#3256 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Revit selector reads process ids 2000-2099 as years (flaky AgentClientTests.AYearOrAProcessIdSelectsTheHost)Có thể đã có người làm @Wurschdhaud đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
pyrevitlabs/pyRevit#3817 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug effort:S P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
nightscout/nocturne#2449 ·
Maintainer thường phản hồi trong vòng 1 ngày