mdsmith
Esc
    v0.52.0 GitHub
    MDS010 code ready

    MDS010: fenced-code-style

    Fenced code blocks must use a consistent delimiter.

    # Settings

    SettingTypeDefaultDescription
    stylestring"backtick""backtick" (```) or "tilde" (~~~)

    # Config

    Enable (default):

    rules:
      fenced-code-style:
        style: backtick

    Disable:

    rules:
      fenced-code-style: false

    Custom (tilde style):

    rules:
      fenced-code-style:
        style: tilde

    # Examples

    # Good (when style is backtick)

    # Title
    
    ```go
    fmt.Println("hello")
    ```

    # Good (when style is tilde)

    # Title
    
    ~~~go
    fmt.Println("hello")
    ~~~

    # Bad (when style is backtick)

    # Title
    
    ~~~go
    fmt.Println("hello")
    ~~~

    # Bad (when style is tilde)

    # Title
    
    ```go
    fmt.Println("hello")
    ```

    # Meta-Information

    • ID: MDS010
    • Name: fenced-code-style
    • Status: ready
    • Default: enabled, style: backtick
    • Fixable: yes
    • Implementation: source
    • Category: code
    • markdownlint: MD048 (code-fence-style)
    • rumdl: MD048 (code-fence-style)
    • gomarklint: consistent-code-fence