#
# linter.py
# Markdown Linter for SublimeLinter, a code checking framework
# for Sublime Text 3
#
# Written by Jon LaBelle
# Copyright (c) 2018 Jon LaBelle
#
# License: MIT
#

"""This module exports the Markdownlint plugin class."""

from SublimeLinter.lint import NodeLinter, util


class MarkdownLint(NodeLinter):
    """Provides an interface to markdownlint."""
    defaults = {
        'selector': 'text.html.markdown,'
                    'text.html.markdown.multimarkdown,'
                    'text.html.markdown.extended,'
                    'text.html.markdown.gfm'
    }
    cmd = ('markdownlint', '${args}', '${file}')
    npm_name = 'markdownlint'
    config_file = ('--config', '.markdownlintrc')
    regex = r'.+?[:]\s(?P<line>\d+)[:]\s(?P<error>MD\d+)?[/]?(?P<message>.+)'
    multiline = False
    line_col_base = (1, 1)
    tempfile_suffix = '-'
    error_stream = util.STREAM_STDERR
    word_re = None
    comment_re = r'\s*/[/*]'

#
# linter.py
# Markdown Linter for SublimeLinter, a code checking framework
# for Sublime Text 3
#
# Written by Jon LaBelle
# Copyright (c) 2018 Jon LaBelle
#
# License: MIT
#

"""This module exports the Markdownlint plugin class."""

from SublimeLinter.lint import NodeLinter, util


class MarkdownLint(NodeLinter):
    """Provides an interface to markdownlint."""

    syntax = ('markdown', 'markdown gfm', 'multimarkdown', 'markdown extended')
    cmd = ('markdownlint', '${args}', '${file}')
    npm_name = 'markdownlint'
    config_file = ('--config', '.markdownlintrc')
    regex = r'.+?[:]\s(?P<line>\d+)[:]\s(?P<error>MD\d+)?[/]?(?P<message>.+)'
    multiline = False
    line_col_base = (1, 1)
    tempfile_suffix = '-'
    error_stream = util.STREAM_STDERR
    word_re = None
    comment_re = r'\s*/[/*]'

--- 
+++ 
@@ -16,8 +16,12 @@
 
 class MarkdownLint(NodeLinter):
     """Provides an interface to markdownlint."""
-
-    syntax = ('markdown', 'markdown gfm', 'multimarkdown', 'markdown extended')
+    defaults = {
+        'selector': 'text.html.markdown,'
+                    'text.html.markdown.multimarkdown,'
+                    'text.html.markdown.extended,'
+                    'text.html.markdown.gfm'
+    }
     cmd = ('markdownlint', '${args}', '${file}')
     npm_name = 'markdownlint'
     config_file = ('--config', '.markdownlintrc')
Remove deprecated SL 'syntax' property override

Replaced by 'defaults/selector':
http://www.sublimelinter.com/en/stable/linter_settings.html#selector
