Skip to content

fix(export/html): use link_description for anchor content#1820

Open
YsuOS wants to merge 1 commit into
nvim-neorg:mainfrom
YsuOS:fix-export-html
Open

fix(export/html): use link_description for anchor content#1820
YsuOS wants to merge 1 commit into
nvim-neorg:mainfrom
YsuOS:fix-export-html

Conversation

@YsuOS

@YsuOS YsuOS commented Jun 13, 2026

Copy link
Copy Markdown

The wrap_anchor() recollector used output[1] as the display text, but output ordering differs between link ({url}[text]) and anchor_definition ([text]{url}) nodes. Use state.link.link_description which is consistent regardless of syntax. Also fix the fallback from the nonexistent link_text field to link_location_text.

The wrap_anchor() recollector used output[1] as the display text,
but output ordering differs between link ({url}[text]) and
anchor_definition ([text]{url}) nodes. Use state.link.link_description
which is consistent regardless of syntax. Also fix the fallback from
the nonexistent link_text field to link_location_text.
@YsuOS

YsuOS commented Jun 13, 2026

Copy link
Copy Markdown
Author

Issue: #1822

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant