require("./stylesheets/main.less");
var marked = require("marked");

var commands = codebox.require("core/commands");
var dialogs = codebox.require("utils/dialogs");

commands.register({
    id: "markdown.preview",
    title: "Markdown: Preview",
    context: ["editor"],
    run: function(args, context) {
        return codebox.tabs.add(codebox.tabs.HtmlPanel, {
            className: "component-markdown-preview",
            content: marked(context.getContent())
        }, {
            type: "markdown",
            title: "Markdown: " + context.model.get("name"),
            section: "markdown"
        });
    }
});

@@ -290,22 +290,18 @@
 (args, c
-ontex
 t
+x
 ) %7B%0A    
@@ -436,22 +436,25 @@
 marked(c
-ontext
+tx.editor
 .getCont
@@ -538,22 +538,25 @@
 n: %22 + c
-ontext
+tx.editor
 .model.g

Use new multiple cmd contexts