You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/06/04 05:36:15 UTC

[GitHub] [airflow] Richiecakes opened a new issue #16263: Unable to use nested lists in DAG markdown documentation

Richiecakes opened a new issue #16263:
URL: https://github.com/apache/airflow/issues/16263


   **Apache Airflow version**: 2.0.2
   
   **What happened**:
   
   Tried to use the following markdown as a `doc_md` string passed to a DAG
   
   ```markdown
   - Example
       -  Nested List
   ```
   
   It was rendered as a single list with no nesting or indentation.
   
   **What you expected to happen**:
   
   I expected the list to display as a nested list with visible indentation.
   
   **How to reproduce it**:
   
   Try and pass a DAG a `doc_md` string of the above nested list.
   I think the bug will affect any markdown that relies on meaningful indentation (tabs or spaces)
   


-- 
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:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #16263: Unable to use nested lists in DAG markdown documentation

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #16263:
URL: https://github.com/apache/airflow/issues/16263#issuecomment-854372392


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
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:
users@infra.apache.org



[GitHub] [airflow] boring-cyborg[bot] commented on issue #16263: Unable to use nested lists in DAG markdown documentation

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #16263:
URL: https://github.com/apache/airflow/issues/16263#issuecomment-854372392


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
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:
users@infra.apache.org



[GitHub] [airflow] Richiecakes commented on issue #16263: Unable to use nested lists in DAG markdown documentation

Posted by GitBox <gi...@apache.org>.
Richiecakes commented on issue #16263:
URL: https://github.com/apache/airflow/issues/16263#issuecomment-854374309






-- 
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:
users@infra.apache.org



[GitHub] [airflow] uranusjr commented on issue #16263: Unable to use nested lists in DAG markdown documentation

Posted by GitBox <gi...@apache.org>.
uranusjr commented on issue #16263:
URL: https://github.com/apache/airflow/issues/16263#issuecomment-859944586






-- 
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:
users@infra.apache.org



[GitHub] [airflow] ashb commented on issue #16263: Unable to use nested lists in DAG markdown documentation

Posted by GitBox <gi...@apache.org>.
ashb commented on issue #16263:
URL: https://github.com/apache/airflow/issues/16263#issuecomment-859932280


   `textwrap.dedent` would do the job here wouldn't it?


-- 
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:
users@infra.apache.org



[GitHub] [airflow] Richiecakes commented on issue #16263: Unable to use nested lists in DAG markdown documentation

Posted by GitBox <gi...@apache.org>.
Richiecakes commented on issue #16263:
URL: https://github.com/apache/airflow/issues/16263#issuecomment-854374309


   #14564 I suspect this pull request may be the reason since it appears to strip spaces and tabs from every line of the markdown. A minor issue, but as a lover of nested lists, would be great to get them working again 😄 


-- 
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:
users@infra.apache.org



[GitHub] [airflow] potiuk closed issue #16263: Unable to use nested lists in DAG markdown documentation

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #16263:
URL: https://github.com/apache/airflow/issues/16263


   


-- 
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:
users@infra.apache.org



[GitHub] [airflow] uranusjr commented on issue #16263: Unable to use nested lists in DAG markdown documentation

Posted by GitBox <gi...@apache.org>.
uranusjr commented on issue #16263:
URL: https://github.com/apache/airflow/issues/16263#issuecomment-854605344


   The cause is the same as https://github.com/apache/airflow/issues/16138#issuecomment-851688673. Instead of `str.lstrip()` each line, the parser need to dedent the lines more smartly to preserve internal indentation.


-- 
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:
users@infra.apache.org