Skip to content

[question] Parser and try find custom link #258

Description

@paulocoutinhox

Hi,

I have a specific need.

I need parse a markdown from our service and return to our app a custom list of markdown text or a product object.

To detect if has a product object, i will check if link start with "ubook-app://".

Sample example to you understand:

You can see our **product** details:
[produto](ubook-app://product/123)

Or you can *read* our book:
[produto](ubook-app://product/456)

Visit our website:
[Website Link](https://www.ubook.com)

And after parser i need have this list:

[
    {"type": "markdown", "text": "You can see our **product** details:"},
    {"type": "product", "p": {"id": 123}},
    {"type": "markdown", "text": "Or you can *read* our book:"},
    {"type": "product", "p": {"id": 456}},
    {"type": "markdown", "text": "Visit our website:"},
    {"type": "markdown", "text": "[Website Link](https://www.ubook.com)"},
]

Can you help me? Is it possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions