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

Passthrough content is not available to InlineMacroProcessor #1291

Open
kbakaras opened this issue Dec 16, 2024 · 2 comments
Open

Passthrough content is not available to InlineMacroProcessor #1291

kbakaras opened this issue Dec 16, 2024 · 2 comments

Comments

@kbakaras
Copy link

kbakaras commented Dec 16, 2024

I would like to create an extension that processes links. Kibana's complex links with search criteria is of interest. Something within Asciidoctor's parser breaks the links. Some brackets disappear, for example. So, I have to use passthrough. And therefore I'm getting placeholders in my InlineMacroProcessor. Is it possible go get to the initial content there?

I'm using 2.5.13 release.

@robertpanzer
Copy link
Member

Please check in the user forum at https://asciidoctor.zulipchat.com.
Without any further context I would suspect that you would need to url encode your query string though.

@kbakaras
Copy link
Author

Thanx, I'll check the forum.

Yes, for the links I can workaround by url encoding them. But if to abstract from the links, is it possible to get original content of a passthrough in converter or in processor extension? I thought that we have passthroughs to have fragments that are not to be parsed. But why can't we access them during conversion? What prevents them to be an end-leaf node in AST?

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