'Adding Curly brackets to a MDX(drop down) file in code snippet

I'm trying to add a code snip that has some curly brackets in a MDX file. I want the brackets to show. The issue that I'm having is the curly brackets are special in dropdown. Any suggestion on how I can add special characters to a dropdown?

div {background-color: yellow;padding: 20px;display: none;} span:hover div {display: block;}



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source