diff --git a/pdf_build_src/remove_admonitions.py b/pdf_build_src/remove_admonitions.py index ddd2b636a1..1942f8b5b0 100644 --- a/pdf_build_src/remove_admonitions.py +++ b/pdf_build_src/remove_admonitions.py @@ -47,7 +47,7 @@ def remove_admonitions( counter += 1 continue - if not line.startswith(indent): + if line != "\n" and not line.startswith(indent): is_admonition = False if is_admonition: diff --git a/pdf_build_src/tests/data/expected/README.md b/pdf_build_src/tests/data/expected/README.md index e719b45f38..37fadc295d 100644 --- a/pdf_build_src/tests/data/expected/README.md +++ b/pdf_build_src/tests/data/expected/README.md @@ -19,3 +19,14 @@ Collapsible admonitions start with 3 questions marks (`???`). Collapsible admonitions that will be shown as expanded start with 3 questions marks and a plus sign (`???+`). + + + +Let's see + +- [`UK biobank`](https://github.com/bids-standard/bids-examples/tree/master/genetics_ukbb) +- foo bar [`UK biobank`](https://github.com/bids-standard/bids-examples/tree/master/genetics_ukbb) + +More of the admonition + +And here we resume normal thing. diff --git a/pdf_build_src/tests/data/input/README.md b/pdf_build_src/tests/data/input/README.md index 102f731fc6..cab4817282 100644 --- a/pdf_build_src/tests/data/input/README.md +++ b/pdf_build_src/tests/data/input/README.md @@ -25,3 +25,16 @@ come in different type. In aaddtion of the classical admonitions show above you Collapsible admonitions that will be shown as expanded start with 3 questions marks and a plus sign (`???+`). + + + +!!! example "non ordered list should be handle propeler" + + Let's see + + - [`UK biobank`](https://github.com/bids-standard/bids-examples/tree/master/genetics_ukbb) + - foo bar [`UK biobank`](https://github.com/bids-standard/bids-examples/tree/master/genetics_ukbb) + + More of the admonition + +And here we resume normal thing.