Plugin: Rich Markdown

This post Any chance for a mixed WYSIWYG editor? - #8 by andrejilderda caused me to explore the possibility of hiding the tokens on all but the active line. This is the css I added:

.cm-rm-strong-token, .cm-rm-highlight-token, .cm-rm-em-token{
	display:none;
}

.CodeMirror-activeline .cm-rm-strong-token, .CodeMirror-activeline .cm-rm-highlight-token, .CodeMirror-activeline .cm-rm-em-token{
	display:inherit;
}

And here is what I can now do:
hiddenTokens

I think this stay's within @CalebJohn's specification of "Don't be ungodly" . What do other people think? @uxamanda ?

I actually think this should be a built in feature of the plugin, namely a checkbox to "Only show MarkDown tokens on active line". Or possibly have a toggle icon in the markdown editor. Maybe that would be better, and it would function like the show editing symbols in MSWord.

Thoughts?

6 Likes