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 @@
599 repositoryURL = "ssh://git@gitbay.org/krz/org-swift.git"; 599 repositoryURL = "ssh://git@gitbay.org/krz/org-swift.git";
600 requirement = { 600 requirement = {
601 kind = upToNextMinorVersion; 601 kind = upToNextMinorVersion;
602 minimumVersion = 0.6.0; 602 minimumVersion = 0.7.0;
603 }; 603 };
604 }; 604 };
605 8B2898B0303FF3E5001BF44A /* XCRemoteSwiftPackageReference "Highlightr" */ = { 605 8B2898B0303FF3E5001BF44A /* XCRemoteSwiftPackageReference "Highlightr" */ = {
gitbay.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +2 −2
@@ -15,8 +15,8 @@
15 "kind" : "remoteSourceControl", 15 "kind" : "remoteSourceControl",
16 "location" : "ssh://git@gitbay.org/krz/org-swift.git", 16 "location" : "ssh://git@gitbay.org/krz/org-swift.git",
17 "state" : { 17 "state" : {
18 "revision" : "4e6e8a02b138886d93833ba4affba95689542c2f", 18 "revision" : "d91c9b516062b4fb0742c83edfd0c16b8a7b1b9b",
19 "version" : "0.6.0" 19 "version" : "0.7.0"
20 } 20 }
21 } 21 }
22 ], 22 ],
gitbay/Views/Repos/FormattedBodyView.swift +2 −1
@@ -22,7 +22,8 @@ struct FormattedBodyView: View {
22 OrgSwiftUI.OrgView( 22 OrgSwiftUI.OrgView(
23 text, 23 text,
24 styler: OrgSyntaxStyler(colorScheme: colorScheme), 24 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) } }
26 ) 27 )
27 } else { 28 } else {
28 MarkdownView(markdown: text, referenceRepo: repo) 29 MarkdownView(markdown: text, referenceRepo: repo)