Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Convert HTML to Markdown and some ideas. #2

Open
kaffeeringe opened this issue Jan 1, 2016 · 7 comments
Open

Convert HTML to Markdown and some ideas. #2

kaffeeringe opened this issue Jan 1, 2016 · 7 comments

Comments

@kaffeeringe
Copy link

Thank you for your great script!

It would be cool if the script converted the HTML from the RSS-feed into markdown so that the articles keep their form. Diaspora escapes HTML. So my current results don't look too nice...

Maybe it would also be cool if the output was configurable - A headline a link and some tags would suffice for my use.

AFAIK Wordpress feeds also contain tags - you could also post them on diaspora…

@fourier
Copy link
Owner

fourier commented Jan 1, 2016

Thanks for ideas. I have tags support in mind, just need to implement them. But about the conversion from HTML to Markdown I doubt it could be reliable, since HTML itself is not really well-defined. However I could take a look at it.

@kaffeeringe
Copy link
Author

Any result of a converter will be better than having all the escaped HTML in posts. ;-)

Maybe you could test this one here: https://github.com/aaronsw/html2text (By the late great Aaron Swartz)

@kaffeeringe
Copy link
Author

And there is an active fork of it: https://github.com/Alir3z4/html2text

@xuv
Copy link

xuv commented Oct 7, 2016

👍 I like the idea of having html2text. Or maybe another solution would be to just be able to decativate posting the content of the post. Just posting a link + title could be sufficient.

@xuv
Copy link

xuv commented Oct 7, 2016

Sorry for the spam here, but pypandoc seems to do conversion from html to markdown.

@fourier
Copy link
Owner

fourier commented Oct 7, 2016

hi,
I'm not a Diaspora user anymore. I could revisit it later however. Does anyone uses this bot ? I haven't heard anything since diasporaforum.org died...

@xuv
Copy link

xuv commented Oct 7, 2016

@fourier well, I don't know if anyone else is running the bot. But I have an instance running it now. Planning to add more Rss feed to it :)

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

No branches or pull requests

3 participants