Sublime Forum

Using Multimarkdown in windows as a build file

#1

I am trying to use ST2 as a markdown editor.

What I would like to do is open a file and certain areas of the file I would like multimarkdown (located in C:\Program Files\MultiMarkdown\multimarkdown.exe and included in the env path) to format for me. I find the certain parts using the following regex:

\G(?:^"]|""|""")*

which will find and highlight what I am looking for.

Following the suggestion from here I created a Multimarkdown.sublime-build and then when completed pushed Ctrl+B to format that selection.

However even though I see Multimarkdown in the list of Build systems nothing happens.

Here is the build file:

{ "windows": { "cmd": "open", "-a", "multimarkdown.exe", "$file"] }, "selector": "text.html.markdown" } ]

and the console shows the following:

Traceback (most recent call last): File ".\sublime_plugin.py", line 337, in run_ return self.run(**args) TypeError: run() argument after ** must be a mapping, not list

how do I get this to work on a selection in a file.

0 Likes