careteditor / issues

Caret issues
https://caret.io
324 stars 12 forks source link

Syntax highlighting inside lists #236

Open matchatype opened 7 years ago

matchatype commented 7 years ago

Bug: Caret does not recognize correctly nested lists inside one another.

Feature: Caret might follow symbols logical order

I like to use different, more complicated symbols, for nested lists to indicate the additional level of complexity -, +, * like in the following example:

- This is an item
- And it's part of an unordered list
- Which may contain nested elements
  + Like this one
    * Nesting should work
    * At multiple levels
  + And this one
- This ends the unordered list

Caret currently remember the last used symbol, and I'd like it to remember the logical order instead. When moving from a * level element back to a + level element or -, I'd like the right symbol to follow along.

I know in Markdown symbols are just indicators loosely coupled (for example you can keep numbering an ordered list with subsequent 1. and have it still work), but I still think this would improve legibility. It's not mandatory, but I think a nice added touch.

erusev commented 7 years ago

Tabbing one time indents item two spaces and doesn't render as a nested item

Do you still experience this in the latest version?

Tabbing two times does work only for ordered nested lists

This should be fixed in the current version.

Caret currently remember the last used symbol, and I'd like it to remember the logical order instead. When moving from a * level element back to a + level element or -, I'd like the right symbol to follow along.

This'd probably be quite hard to implement, but I like it so I'll see what we can do.

matchatype commented 7 years ago
  • Tabbing one time indents item two spaces and doesn't render as a nested item
  • Tabbing two times does work only for ordered nested lists

Both are now working, thank you!

This'd probably be quite hard to implement, but I like it so I'll see what we can do.

Would love that 😬