Dr-Denzy edited a comment on issue #16138: URL: https://github.com/apache/airflow/issues/16138#issuecomment-851401276
@sweco to create a code block, you have to leave a blank line between each line. See [PEP 257](https://www.python.org/dev/peps/pep-0257/) and [Markdown guidelines](https://www.markdownguide.org/basic-syntax/) for more details. This is how I did it: ```python from airflow import DAG DOC_MD = """\ # Markdown code block Inline `code` works well. Code block <del>does not</del> now respect newlines """ dag = DAG( dag_id='md-doc', doc_md=DOC_MD ) ```  ```python from airflow import DAG DOC_MD = """\ # Markdown code block Inline `code` works well. `Code block` <del>`does not`</del> `now` `respect` `newlines` """ dag = DAG( dag_id='md-doc', doc_md=DOC_MD ) ```  -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
