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

[Autolink] Store positioning info for url_match #201

Merged
merged 1 commit into from
Jan 31, 2023
Merged

[Autolink] Store positioning info for url_match #201

merged 1 commit into from
Jan 31, 2023

Conversation

bdotdub
Copy link

@bdotdub bdotdub commented Jul 8, 2020

Currently for the autolink extension, only www_match correctly returns correct positioning when calling cmark_node_get_start_line/cmark_node_get_start_column/cmark_node_get_end_line/cmark_node_get_end_column. This is done here: https://github.com/github/cmark-gfm/blob/master/extensions/autolink.c#L191-L193

This PR adds positioning support for the url_match function.

Currently for the autolink extensioon, only `www_match` correctly returns correct positioning when calling `cmark_node_get_start_line`/`cmark_node_get_start_column`/`cmark_node_get_end_line`/`cmark_node_get_end_column`.

This PR adds positioning support for the `url_match` function.
@bdotdub
Copy link
Author

bdotdub commented Jul 8, 2020

I couldn't figure out how to test this in this repo, but you can see it tested here: bdotdub/cmark-gfm-swift@d543098

@phillmv phillmv merged commit b32a02f into github:master Jan 31, 2023
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.

3 participants