Skip to content

Question: How to extract original source between delimiters in a delimiterProcessor? #317

Closed

Description

@zampino

Hello, thanks for this well written library! We're considering it for replacing the parser in our clojure markdown document to data library.

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

$some [stuff](/which/might/looklike/a/link) say$

same using a Markdown or Text renderer I guess.

I guess this falls under #263…

Activity

  1. robinst commented on Apr 6, 2024

    @robinst
    Collaborator

    Hello, thanks for this well written library!

    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 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?

  2. zampino commented on Apr 8, 2024

    @zampino
    ContributorAuthor

    would your company be willing to sponsor the project via GitHub sponsors?

    I'd have to check internally, but I think that could work. Where could we reach you to discuss some details?

  3. robinst commented on Apr 9, 2024

    @robinst
    Collaborator

    I'd have to check internally, but I think that could work. Where could we reach you to discuss some details?

    I sent you an email via the email address listed in your profile.

  4. robinst commented on Apr 26, 2024

    @robinst
    Collaborator

    Closing this in favor of #263.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions