reversemarkdown-net icon indicating copy to clipboard operation
reversemarkdown-net copied to clipboard

Ability to return an object rather than Markdown directly

Open PrzemyslawKlys opened this issue 5 years ago • 1 comments

I have this scenario where I know very little HTML. I can read it, but I can't really get an HTMLAgility pack to "prepare" document for preprocessing with reversemarkdown.

I was thinking about two things:

  • ability to provide MAP what I need from HTML I imagine there would be different cases here
    • choose a tag
    • choose a tag but only if it has a class of X
    • ...
  • ability to get an output as array of objects - this would allow me to "pick" objects I want and don't want.

Both scenarios would be useful for me. For example, I know the HTML has two pre tags, 7 p tags, some duplicated content with different classes, and so on. This would allow me to filter out some stuff before it reaches to markdown.

PrzemyslawKlys avatar Aug 14 '20 09:08 PrzemyslawKlys

I was think about some use cases on the same lines, have some neat ideas. I will put some thoughts/functionality on my next window of time to work on this. Please bear with me, probably sometime next week or so.

mysticmind avatar Aug 14 '20 12:08 mysticmind