Is there a way to change the position of "Hide Details"?


(xiasummer) #1

Hi, Discourse Markdown is very powerful.

Only a small feature I’m wonder whether it can do.

As we see must be on the very first position to take effect.

Summary

This text will be hidden

But I usually write things in this way

  • A

  • B

    • B1

    • B2

Summary

This text will be hidden

  • B3

  • C

With code being:

* A

* B

   * B1

   * B2
[details="Summary"]
This text will be hidden
[/details]


   * B3

* C

Some times the notes that I want to hide is in like B2. How could I just make it work rightly?


(cpradio) #2

This seems to work

* A

* B

   * B1

   * B2
        <details><summary>Summary</summary>This text will be hidden</details>


   * B3

* C

Produces:

  • A

  • B

    • B1

    • B2

      SummaryThis text will be hidden
    • B3

  • C


(Joshua Rosenfeld) #3

The following should work too (if you want to stick with markdown and not mix HTML):

  • A

  • B

    • B1

    • B2

      Summary

      This text will be hidden

    • B3

  • C

* A

* B

   * B1

   * B2
     [details="Summary"]
     This text will be hidden
     [/details]

   * B3

* C