Skip to content

How to self modify parse method when htmltomarkdown #353

Open
@gaofeiseu

Description

@gaofeiseu

Is your feature request related to a problem? Please describe.
Hi, I come from China, flexmark is really good tools, during my development, I found some problem.
I need to convert html to markdown.But when I convert, some tag in html has unusual src like this
<img src="//img.alicdn.com/tfscom/TB1mR4xPpXXXXXvapXXXXXXXXXX.jpg" >
such src cannot convert to markdown and behavior correct.

Describe the solution you'd like
how can I modify src parse method in img tag in a extension options way.
And get result like this
<img src="//abc.com/cde/efg.jpg" >
convert to
![](https://abc.com/cde/efg.jpg)

Describe alternatives you've considered
some extension options or already has some options I just ignore?

Additional context

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions