usecanvas / canvas-native-3

https://usecanvas.github.io/canvas-native-3
4 stars 1 forks source link

Non-textual blocks #5

Open soffes opened 8 years ago

soffes commented 8 years ago

For blocks like images and horizontal rules, there is no text to edit. How do you feel about:

hr|{}

We can omit the last | since there is no content.

soffes commented 8 years ago

I'm not sure if link definitions fall into this category.

jclem commented 8 years ago

I would prefer we have complete consistency in the formatting of lines. I expect to be able to, for every single line:

const [type, meta, content] = 'foo|{}|'.split('|');

I'd rather deal with blank content than with a variable-sized array that we'd get from completely omitting the content. I guess as a client I can put content in an HR if I really want to, but there's no guarantee that anyone will do anything with it.