Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Titles Parse Markdown? #123

Closed
mpql opened this issue Nov 12, 2021 · 2 comments
Closed

Bug: Titles Parse Markdown? #123

mpql opened this issue Nov 12, 2021 · 2 comments

Comments

@mpql
Copy link

mpql commented Nov 12, 2021

Weirdly, ordered and unordered lists are parsed inside Admonition titles. It seems other markdown is parsed as well; I'm not sure if this is a regression or just a previously undiscovered oversight, but I didn't find anything searching issues.

Steps to Reproduce:

```ad-note
title: 1. Borked Ordered List
```

```ad-note
title: - Borked Unordered List
```

Expected Result:

image

Actual Result:

image

I think expected behavior would just be to not parse that kind of thing at all, but rather than being an isolated bug, I think this might be indicative of a larger issue of unexpecting parsing, per these tests with a code block:

```ad-note
title: ```
test
```

```ad-note
title: ```ad-note
test
```

...which result in:

image

Anyhow, there isn't much of a use case for this (I was trying to put steps in titles), and the following CSS fixes that:

ol.admonition-title-content,
ul.admonition-title-content {
    list-style-position: inside;
    padding-left: 0;
}

...resulting in:

image

...which is kind of weird, but works fine. Just wanted to throw something up here to make it known / track it.

@valentine195
Copy link
Member

This is expected behavior. I can add a toggle if you’d rather not have markdown parsed.

@mpql
Copy link
Author

mpql commented Nov 12, 2021

Oh, that surprises me. But yeah, that sounds great -- as long as it's not troublesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants