I'm becoming very fond of the the double-comma separated format. eg.

123 345 654 hello world
343 26 21 goodbye galaxy

All the advantages of simplicity and readability of comma-separated, without the problem of escaping or wrapping single commas.

Q: What do you do when you want to store a string that contains a double-comma ?

(This special case happens far, far less often than wanting to store a string that contains a single-comma, but I don't want to assume it never happens).


A : Right now, there's no special facility for escaping. Of course, really wanting to represent double commas is fairly unusual, but would become more common if people started adopting double comma format for other things. There's no escaping from the requirement for escaping :-)

In practice, in CardiganBay right now :

  • Double-comma rendering is limited to :markdown type cards. So other CardTypes that store data in, say, EDN aren't affected.
  • you can put an HTML comment between the two commas like this ,, This does, indeed let you show double commas (the comment is invisible) without treating them as tables.


This is a :raw card type with double commas that aren't turned into tables

apples oranges bananas
1 2 3

And this a normal default markdown card where the same data is

apples oranges bananas
1 2 3

Can tables be in bullet points and quotes.

* not really

> really not really

You get the table, but it messes up the "beginning of line" markup.

OTOH, you can use basic markdown like

italics bolds and external links like http://thoughtstorms.info

in tables.

See also SmartAscii

Backlinks (2 items)