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

Ability to return an object rather than Markdown directly #79

Open
PrzemyslawKlys opened this issue Aug 14, 2020 · 1 comment
Open

Ability to return an object rather than Markdown directly #79

PrzemyslawKlys opened this issue Aug 14, 2020 · 1 comment

Comments

@PrzemyslawKlys
Copy link

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.

@mysticmind
Copy link
Owner

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.

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

No branches or pull requests

2 participants