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

postAsset config in markdown-it render #140

Closed
fengkx opened this issue Nov 19, 2020 · 3 comments · Fixed by #188
Closed

postAsset config in markdown-it render #140

fengkx opened this issue Nov 19, 2020 · 3 comments · Fixed by #188

Comments

@fengkx
Copy link

fengkx commented Nov 19, 2020

I want to implement postAsset in markdown-it render.

I try implement it with a filter bind to markdown-it:renderer. But later I can't find a way to access data.path like here in the filter.

Is there any way to access the post currently render in markdown-it:render filter?

Maybe add an args when execute the filter may help?

this.execFilterSync('markdown-it:renderer', parser, { context: this , args: [data.path]});
@SukkaW
Copy link
Member

SukkaW commented Nov 19, 2020

@fengkx
Copy link
Author

fengkx commented Nov 19, 2020

@fengkx
Copy link
Author

fengkx commented Nov 19, 2020

Make a pull request about this #141

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 a pull request may close this issue.

2 participants