Saq, I think it's plenty enough to add a same character if the line starts with * or #, otherwise a tab (or two spaces; the indent type should be optional). Edge cases, when * and both "plain text" are within a paragraph, should be handled by the user instead of an overly complicated algorithm.
Thinking about how the plugin works, it is starting to look like CodeMirror, which works in a simple textarea instead of a "dedicated" div. Isn't there a ready-made solution for this already where the knowledge of the textarea is supplemented excluding the syntax highlight? -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7b8783c3-8c22-490c-8655-9439e3ed0f29n%40googlegroups.com.