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

Provide access to refmap. #121

Closed
ioquatix opened this issue May 16, 2020 · 4 comments
Closed

Provide access to refmap. #121

ioquatix opened this issue May 16, 2020 · 4 comments

Comments

@ioquatix
Copy link

I would like to extract link data from the refmap but it doesn't seem possible. Can you let me know if it's possible?

@kivikakk
Copy link
Collaborator

It's possible to add functions to facilitate iteration of the refmap, definitely; the structures are defined in public header files and so should be reasonably stable.

@ioquatix
Copy link
Author

Do you want me to make a PR?

@kivikakk
Copy link
Collaborator

Yes, please — as long as new code is added to commonmarker.c and commonmarker.h only, as everything else in ext/commonmarker/ is copied in from upstream.

@ioquatix
Copy link
Author

I ended up forking this repo to https://github.com/ioquatix/markly/ and implementing a Parser class which can (potentially) expose this. Back porting it will be almost impossible because the interfaces in this code base don't really expose 'per-document' or 'per-parser' so I'm going to close this issue.

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

No branches or pull requests

2 participants