mdsmith
Esc
    v0.52.0 GitHub
    MDS015 code ready

    MDS015: blank-line-around-fenced-code

    Fenced code blocks must have a blank line before and after.

    # Config

    Enable:

    rules:
      blank-line-around-fenced-code: true

    Disable:

    rules:
      blank-line-around-fenced-code: false

    # Examples

    # Bad

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

    # Good

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

    # Diagnostics

    MessageCondition
    fenced code block should be preceded by a blank linePrevious line is not blank
    fenced code block should be followed by a blank lineNext line after closing fence is not blank

    # Meta-Information