Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly handle *ast.AutoLink nodes in the plainmarkdown function #361

Merged
merged 2 commits into from Apr 19, 2024

Conversation

SBGoods
Copy link
Contributor

@SBGoods SBGoods commented Apr 19, 2024

Closes: #360

Fixes a bug where plain URLs (ie https://github.com/) were missing from the plainmarkdown function output. The goldmark library treats links (ie [link](http://github.com/)) as a different node type from plain URLs. The previous code for handling the *ast.AutoLink node type for plain URLs would output the Text() method for the node instead of the URL() method. This PR calls the correct method and adds a corresponding unit test case.

@SBGoods SBGoods requested a review from a team as a code owner April 19, 2024 19:40
@SBGoods SBGoods added bug Something isn't working command/generate labels Apr 19, 2024
@SBGoods SBGoods added this to the v0.19.1 milestone Apr 19, 2024
Copy link
Member

@bflad bflad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me! 🚀

@SBGoods SBGoods merged commit e059d5e into main Apr 19, 2024
6 checks passed
@SBGoods SBGoods deleted the SBGoods/plainmarkdown-url-fix branch April 19, 2024 19:50
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working command/generate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Odd documentation generation with upgrade to version 0.19.0
2 participants