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

Add support for collapsible section #2860

Open
LordSimal opened this issue Nov 21, 2022 · 3 comments
Open

Add support for collapsible section #2860

LordSimal opened this issue Nov 21, 2022 · 3 comments
Labels
Enhancement Enhance performance or improve usability of original features. Need Discussion Need discussion or investigation

Comments

@LordSimal
Copy link

Version

3.2.1

Development Environment

Chrome 107.0.5304.110
MacOS 13.0.1

Current Behavior

Currently a collapsible section looks like this

image

<details>
  <summary>Click me</summary>
  
  ### Heading
  1. Foo
  2. Bar
     * Baz
     * Qux

  ### Some Code
  ```js
  function logSomething(something) {
    console.log('Something', something);
  }
  ```
</details>

Expected Behavior

But it should look/behave like this

2022-11-21_15-24-34 (1)

See https://gist.github.com/pierrejoubert73/902cc94d79424356a8d20be2b382e1ab

@LordSimal LordSimal added Enhancement Enhance performance or improve usability of original features. Need Discussion Need discussion or investigation labels Nov 21, 2022
@jwlee1108
Copy link
Contributor

Thank you for the issue. This is in our ToDos, but we can't handle right now.

@LordSimal
Copy link
Author

I just learned that its actually not a specific markdown feature but rather a feature of HTML.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details

@zdwork
Copy link

zdwork commented Nov 19, 2023

expect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Enhance performance or improve usability of original features. Need Discussion Need discussion or investigation
Projects
None yet
Development

No branches or pull requests

3 participants