TheOdinProject / theodinproject

Main Website for The Odin Project
http://www.theodinproject.com
MIT License
3.59k stars 2.06k forks source link

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

Closed kol3x closed 3 months ago

kol3x commented 3 months ago

Checks

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> 
  3. Go to preview version
  4. 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> 
  3. Go to preview version
  4. 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

CouchofTomato commented 3 months ago

@KevinMulhern Please take a look

KevinMulhern commented 3 months ago

Thanks for reporting @kol3x - duplicate of https://github.com/TheOdinProject/theodinproject/issues/4488

kol3x commented 3 months ago

My bad :(