bobbingwide / oik-bob-bing-wide

More lazy smart shortcodes
https://www.oik-plugins.com/oik-plugins/oik-bob-bing-wide-more-lazy-smart-shortcodes/
GNU General Public License v2.0
2 stars 0 forks source link

Allow bw_csv to use | delimiter characters instead of , #20

Closed bobbingwide closed 5 years ago

bobbingwide commented 7 years ago

Using Markdown a table can be created easily using vertical bar delimiters. [bw_csv] currently expects commas as the delimiter. There have been many times that I've unintentionally used a comma as part of the text... and seen additional unwanted columns. It would be nice if the required delimiter character could be specified or inferred from the content. e.g.

[bw_csv del=|]This|that
Row 1 | Cell 2
Row 2 | Cell 2, and still cell 2
[/bw_csv]

or ( inferred ) from the first delimiter in the content.

[bw_csv]This|that
Row 1 | Cell 2
Row 2 | Cell 2, and still cell 2
[/bw_csv]

Syntax should allow del= or sep= parameter for the delimiter / separator. Don't expect both to be passed; behaviour undefined.