SamFaulls / ThronesBot

A Python based Game of Thrones LCG 2nd Edition chat bot for the Slack messaging service.
GNU General Public License v3.0
1 stars 0 forks source link

Use full HTML to Markdown conversion #4

Open SamFaulls opened 8 years ago

SamFaulls commented 8 years ago

Some HTML tags still in a few cards. Look into python libraries for this.

Rossiar commented 7 years ago

Is this an issue? What does Slack do with raw HTML that is so bad? From what I've read, markdown is just shorthand for HTML anyway, This project is the closest I could find to a proper python library for conversion, but only seems to go one way.

SamFaulls commented 7 years ago

the ThronesDB API returns HTML tags to format text... slack will display these as raw text. Currently the code replaces select tags with markdown (i.e. -> * ). Though I've found a few cards that have some more involved formatting.

SamFaulls commented 7 years ago

Though... looking now, i think ThronesDB has cleared up their formatting. The only HTML tags seem to be , and

Rossiar commented 7 years ago

Are we OK to close this off then?