themesberg / flowbite

Open-source UI component library and front-end development framework based on Tailwind CSS
https://flowbite.com
MIT License
7.31k stars 710 forks source link

Add missing fenced code blocks in the dropdown docs #773

Closed godnondsilva closed 5 months ago

godnondsilva commented 5 months ago

Problem In the dropdown documentation page, under Javascript Behaviour > HTML Markup, a dropdown element is displayed, where it says "Use the following HTML code...".

Screenshot image

Expected Result It should display the HTML code of the dropdown, instead of the actual visual representation of the dropdown.

Solution Add fenced code blocks (```) to display the output correctly.

Note: The HTML code is formatted with prettier. Let me know if the expectation is the default formatting.

@zoltanszogyenyi Please review.

zoltanszogyenyi commented 5 months ago

Hey @godnondsilva,

Thanks for the PR! I actually fixed this myself in the upcoming release, so no need to merge.

But thank you either way :)