Commit af50ba953d

af50ba953d0b0f7a5ca2d8cee18ef6b82501261b

parent: e9c405b56e

Verified · cmc

cmc <hello@cleberg.net> · 2026-09-30 03:14 UTC

Link references in org bodies

FormattedBodyView passes linkReferences to OrgView's textTransform, so
#N / !N link in org-format bodies outside verbatim, code, src/example
blocks and existing links. Requires org-swift 0.7.0 (krz/org-swift!9).

Layout: unified · split

gitbay.xcodeproj/project.pbxproj +1 −1
@@ -599,7 +599,7 @@
599599 repositoryURL = "ssh://git@gitbay.org/krz/org-swift.git";
600600 requirement = {
601601 kind = upToNextMinorVersion;
602 minimumVersion = 0.6.0;
602 minimumVersion = 0.7.0;
603603 };
604604 };
605605 8B2898B0303FF3E5001BF44A /* XCRemoteSwiftPackageReference "Highlightr" */ = {
gitbay.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +2 −2
@@ -15,8 +15,8 @@
1515 "kind" : "remoteSourceControl",
1616 "location" : "ssh://git@gitbay.org/krz/org-swift.git",
1717 "state" : {
18 "revision" : "4e6e8a02b138886d93833ba4affba95689542c2f",
19 "version" : "0.6.0"
18 "revision" : "d91c9b516062b4fb0742c83edfd0c16b8a7b1b9b",
19 "version" : "0.7.0"
2020 }
2121 }
2222 ],
gitbay/Views/Repos/FormattedBodyView.swift +2 −1
@@ -22,7 +22,8 @@ struct FormattedBodyView: View {
2222 OrgSwiftUI.OrgView(
2323 text,
2424 styler: OrgSyntaxStyler(colorScheme: colorScheme),
25 keywords: OrgKeywordStyle(todo: .gbOK, done: .gbDone)
25 keywords: OrgKeywordStyle(todo: .gbOK, done: .gbDone),
26 textTransform: repo.map { repo in { linkReferences(in: &$0, repo: repo) } }
2627 )
2728 } else {
2829 MarkdownView(markdown: text, referenceRepo: repo)