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

[question] Parser and try find custom link #258

Open
paulocoutinhox opened this issue Jul 15, 2024 · 0 comments
Open

[question] Parser and try find custom link #258

paulocoutinhox opened this issue Jul 15, 2024 · 0 comments

Comments

@paulocoutinhox
Copy link

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?

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

1 participant