# Dropdown menu displays both KaTeX-MathML and KaTeX-HTML #572

Closed
opened this issue Nov 27, 2016 · 3 comments

### SamanthaYu commented Nov 27, 2016

 The dropdown menu displays both the KaTeX-MathML (including the annotation) and KaTeX-HTML elements so the math symbols appear to be rendered on both sides of the annotation. It seems to be an HTML issue, because I tried to hide the MathML with JavaScript (by setting the visibility to hidden, and display to none), and it does not affect the dropdown menu. In other words, hidden elements still appear in the dropdown menu. In the end, I fixed it by getting rid of the MathML elements in the dropdown menu: \$('option .katex-mathml').remove(); Now, the dropdown menu looks like this: It's probably not the best solution but more of a temporary fix until this issue gets resolved someday.
Collaborator

### gagern commented Nov 29, 2016

 I feel like I'm missing some context here. What dropdown menu would that be?
Contributor

### xymostech commented Nov 29, 2016

 @SamanthaYu It would be nice if you added some code, but I think you're trying to put KaTeX-rendered math inside of your 
closed this Nov 29, 2016
Author

### SamanthaYu commented Dec 1, 2016

 Sorry for the missing context, but yes, I was trying to put KaTeX-rendered math instead of the 
referenced this issue Dec 8, 2018