Skip to content

Github markdown (not docusaurus) display is broken if ``` isn't preceded by a blank line #1595

@lukaw3d

Description

@lukaw3d

If someone is browsing docs on github instead of docusaurus
https://github.com/oasisprotocol/docs/blob/b80c7dadd51f6330ed70fb13d7f4a0c796b7f44d/docs/build/use-cases/price-oracle.mdx

Image

Ideally this could be detected by changing

'blanks-around-fences': false,
and auto-fixed with fmt-markdown. But in the following case it thinks opening fence is invalid and closing fence is opening :/

  <details>
      <summary>Dockerfile</summary>
  ```dockerfile
  FROM python:alpine3.17
  
  WORKDIR /bot
  COPY ./bot.py ./requirements.txt /bot
  RUN pip install -r requirements.txt
  
  CMD ["python", "bot.py"]
+ 
  ```
  </details>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions