Tools

Samuel said

Samuel  

Channel hashes vs. markdown headers

9 comments

Samuel posted to #Qaiku-api Espoo 19.11.2009 (en)

9 comments

Bottom

Samuel  

in Markdown, #Qaiku would mean first level heading, but in Qaiku-API hashes refer to channels. The Qaiku user interface explains what kind of Markdown formatting is allowed, but the API doesn't.

The API specification doesn't tell whether it also returns messages Markdown formatted. Markdown is only mentioned in "Posting new messages" part.

Samuel commented on posted to #Qaiku-api Espoo 19.11.2009 (en)

Samuel  

At least the links in returned messages are in Markdown format.

Samuel commented on posted to #Qaiku-api Espoo 19.11.2009 (en)

Samuel  

I cannot use a generic Markdown parser to display messages, since it will convert channel references to h1 elements (at least in the beginning of paragraphs).

Samuel commented on posted to #Qaiku-api Espoo 19.11.2009 (en)

TomiS  

@Samuel In the next Qaiku release (coming out soon), there will be preformated html field in message payload. Does this satisfy your needs?

TomiS commented on posted to #Qaiku-api 24.11.2009 (en)

Samuel  

@TomiS Yes, thanks. (Hopefully the HTML markup will be adequate and concentrates on semantics rather than styling.)

Samuel commented on posted to #Qaiku-api Espoo 24.11.2009 (en)

TomiS  

@Samuel Well. It's practically the same function that is used for visualizing all qaiku message loops.

TomiS commented on posted to #Qaiku-api 24.11.2009 (en)

Samuel  

Will it contain stuff like

span class="rounded_image rounded_image_40_borders_grey qaiku_js_quickselect"

or just the formatting inside span.entry-title?

Samuel commented on posted to #Qaiku-api Espoo 24.11.2009 (en)

bergie  

@Samuel just the message text formatted via Markdown

bergie commented on posted to #Qaiku-api Helsinki, Finland 24.11.2009 (en)

Samuel  

@TomiS just what I wanted. It has a small bug though: it strips away spaces after links:
<a href="/home/Samuel/">@Samuel</a>Well. It's practically the same function that is used for visualizing all qaiku message loops.<br />

Since the links are relative, I have to write some logic of my own to convert them to absolute links.

Samuel commented on posted to #Qaiku-api Helsinki, Finland 27.11.2009 (en)

Login or register to leave a comment

Publicity
These messages are public and can be seen by anyone.