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

Featurerequest: Output without markdown #381

Open
sowinski opened this issue Mar 25, 2022 · 3 comments
Open

Featurerequest: Output without markdown #381

sowinski opened this issue Mar 25, 2022 · 3 comments

Comments

@sowinski
Copy link

Hi,

I found this library becaue I want to to html => text.
Unfortunately the library is doing html => markdown.

I haven't seen anything in the docs. Is it possible to disable the markdown output and just get plan text?

Regards
Philipp

@Cabu
Copy link

Cabu commented Aug 9, 2022

Same here. Would be great :)

@PanderMusubi
Copy link

Several solutions exist and can be found by searching for markdown2text etc in https://pypi.org/ Perhaps this issue is therefore out of scope (but that is not up to me to decide).

@lesnake
Copy link

lesnake commented Jan 10, 2024

I was about to write what @sowinski wrote.

A html2text then a markdown2text would not get the job done because the markdown regex remove some useless bytes, escapes characters ...
Example

 -      foo
 -      bar
 -      baz

Will be converted into

\- foo
\- bar
\- baz

Which loses the initial number of spaces.
Any more processing steps, as I feel like @PanderMusubi suggests, cannot regenerate the information that was lost (the spaces).

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

4 participants