Skip to content

HTML parser: Collapsible content #267

Description

@NorthDecoder

Although react-markdown package claims to do Github Flavored
Markdown (GFM), the demo appears to implement the
syntax differently than the marked.js demo.

The following works in marked.js demo (and on github flavored markdown):

## collapsible markdown?

<details><summary>CLICK ME</summary>
<p>

#### yes, even hidden code blocks!

```python
print("hello world!")
```

</p>
</details>

By removing spacing you can coax the react-markdown
demo to sort of work, but the collapsed content loses
the markdown translation:

## collapsible markdown?

<details><summary>CLICK ME</summary>
<p>
#### yes, even hidden code blocks!
```python
print("hello world!")
```

</p>
</details>

The collapsible markdown works in GFM

CLICK ME

yes, even hidden code blocks!

print("hello world!")


Reference PrISM isssue (84)[https://github.com/NorthwestGreenChemistry/PrISM/issues/84]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions