TheOdinProject / theodinproject

Main Website for The Odin Project

Home Page:http://www.theodinproject.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: Markdown preview doesn't work with <details> tag

kol3x opened this issue · comments

Checks

  • I have thoroughly read and understand The Odin Project Contributing Guide
  • The title of this issue follows the Bug: brief description of bug format, e.g. Bug: Lesson complete button does not update on click
  • Would you like to work on this issue?

Bug description

Markdown preview doesn't work with details tag, it just shows plain text

How to reproduce

  1. Go to https://www.theodinproject.com/lessons/preview
  2. Insert
<details>
  <summary>Epcot Center</summary>
  <p>Epcot is a theme park at Walt Disney World Resort featuring exciting attractions, international pavilions, award-winning fireworks and seasonal special events.</p>
</details> 
  1. Go to preview version
  2. Text is not hidden and not clickable

Expected behavior

  1. Go to https://www.theodinproject.com/lessons/preview
  2. Insert
<details>
  <summary>Epcot Center</summary>
  <p>Epcot is a theme park at Walt Disney World Resort featuring exciting attractions, international pavilions, award-winning fireworks and seasonal special events.</p>
</details> 
  1. Go to preview version
  2. Text is hidden and unhidden on click.

What browsers are you seeing the problem on?

Firefox

What OS are you using?

Ubuntu

Discord Name

No response

Additional Comments

No response

@KevinMulhern Please take a look

Thanks for reporting @kol3x - duplicate of #4488

My bad :(