
"""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*/[/*]'


"""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*/[/*]'

Remove deprecated SL 'syntax' property override
Remove deprecated SL 'syntax' property override

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

  
  """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')
+     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*/[/*]'
  
Remove deprecated SL 'syntax' property override
## Code Before:

"""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*/[/*]'

## Instruction:
Remove deprecated SL 'syntax' property override
## Code After:

"""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*/[/*]'
