Implementing hidden message under a dropdown which opens when clicked #1462
-
I am trying to implement a message hidden under a drop-down (details-summary tags).
When I try a plaintext under details tag, it works just fine. But when any JustTheDocs formatting is used, it is not applied. How to do it right? Please help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @vikas-bandaru, thanks for submitting a discussion! Long story short, kramdown (the markdown compiler/converter used by Jekyll) does not process markdown within HTML by default. If you want kramdown to parse the inside of an HTML block(s) as markdown, you need to use the <details markdown="block">
<summary>Solution</summary>
```java
public String greetWithName(String name)
{
return "Hello, " + name ;
}
```
</details> You can read more about this in the kramdown documentation, though it may not be the most beginner friendly. Let me know if you've got other questions! |
Beta Was this translation helpful? Give feedback.
Hi @vikas-bandaru, thanks for submitting a discussion! Long story short, kramdown (the markdown compiler/converter used by Jekyll) does not process markdown within HTML by default. If you want kramdown to parse the inside of an HTML block(s) as markdown, you need to use the
markdown
attribute. In your case, you likely want something like this:You can read more about this in the kramdown documentation, though it may not be the most beginner friendly. Let me know if you've got other questions!