siilihai-client icon indicating copy to clipboard operation
siilihai-client copied to clipboard

Detect forum formatting?

Open Drakedude opened this issue 9 years ago • 3 comments

Formatting links and text in posts varies from forum to forum, so i wonder if it's possible to detect and display each forum's setup.

Drakedude avatar Aug 18 '15 16:08 Drakedude

Could you elaborate a bit? In parsed forums they are HTML and in TapaTalk they seem to be mostly standard markdown code. Can you give an example?

vranki avatar Aug 19 '15 09:08 vranki

It may be an edge case come to think of it, but take Reddit's customised markdown formatting. You link with reddit! vs [url=http://reddit.com]reddit![/url], which is more elegant. If they do it, other's must.

Drakedude avatar Aug 19 '15 10:08 Drakedude

I think reddit has more complex structure than a "normal" forum. Perhaps Reddit-specific reader code could be done and implemented in Siilihai some day.

Anyway, in TapaTalk forums the conversion is done here:

https://github.com/vranki/libsiilihai/blob/master/src/siilihai/tapatalk/tapatalkengine.cpp#L41

It converts the markup to basic html. If it's missing some elements, I can add them there.

vranki avatar Aug 19 '15 11:08 vranki