You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Question: How to extract original source between delimiters in a delimiterProcessor? #317
I'm trying to add support for inline latex formulas delimited between single dollar signs some $\phi$ ormula via a custom delimiterProcessor but couldn't find examples of such a processor which is able to extract the original source between the delimiters since afaiu delimiter processors operate after the inline parsing.
What is currently possible is to capture and join all literals from text nodes between the opener and the closer Nodes.between() but that might not reproduce the exact source as in
Yeah, I don't think a delimiter processor is the right tool for this, for exactly the reason you mentioned. You don't want any inline parsing within the $$ AFAIUI. I think a custom inline parser would work well.
I'm happy to have the current support around InlineContentParser be available to extensions. Do you want to look into maybe contributing that? I think a PoC PR should be fairly straightforward (don't worry about it being clean or anything, just make it work and then we'll see).
Alternatively (or additionally), would your company be willing to sponsor the project via GitHub sponsors?
Activity
robinst commentedon Apr 6, 2024
Thank you ❤️.
Yeah, I don't think a delimiter processor is the right tool for this, for exactly the reason you mentioned. You don't want any inline parsing within the
$$AFAIUI. I think a custom inline parser would work well.I'm happy to have the current support around
InlineContentParserbe available to extensions. Do you want to look into maybe contributing that? I think a PoC PR should be fairly straightforward (don't worry about it being clean or anything, just make it work and then we'll see).Alternatively (or additionally), would your company be willing to sponsor the project via GitHub sponsors?
zampino commentedon Apr 8, 2024
I'd have to check internally, but I think that could work. Where could we reach you to discuss some details?
robinst commentedon Apr 9, 2024
I sent you an email via the email address listed in your profile.
robinst commentedon Apr 26, 2024
Closing this in favor of #263.