4

How to do spoiler (hidden text or block) in Grav CMS with markdown or plugin? There isn't spoiler in official markdown and Markdown Extra (supported by Grav).

I try spoiler like this but don't work with Grav.

>! spoiler

spoiler

Community
  • 1
  • 1
mkczyk
  • 2,460
  • 2
  • 25
  • 40
  • The spoiler works on Stack Overflow on a Windows 8.1 machine with FireFox 51.0. – jww Feb 28 '17 at 03:18
  • @jww: I know that spoiler works on StackOverflow. But I want this function on Grav CMS. StackOverflow is only example to show how spoiler should works. – mkczyk Mar 01 '17 at 02:28
  • 1
    Grav uses Parsedown, which does not natively support spoilers. A port does show how to add it though: https://github.com/erusev/parsedown/issues/451 – OleVik Mar 01 '17 at 16:38

1 Answers1

4

There is now a spoiler plugin available in the official package manager and github here. That should provide the feature you are looking for.

dabonde
  • 359
  • 1
  • 11