sanskrit-lexicon / MWS

Monier Monier-Williams, Sir; A Sanskrit-English dictionary. Oxford, 1899
Other
7 stars 5 forks source link

A strange error in display-code #160

Closed Andhrabharati closed 5 months ago

Andhrabharati commented 5 months ago

Just landed at this, by chance--

image

What could be the fault, resulting in displaying the "hidden text"?

Andhrabharati commented 5 months ago

Another error--

image

Is this by any chance, a "by-product" (side-effect) of the recently introduced highlighting code?

funderburkjim commented 5 months ago

Yes, It does look related to the highlighting code.

funderburkjim commented 5 months ago

Problem Solved

image
funderburkjim commented 5 months ago

Note I changed the highlight color to the one used by @neeleshb in https://sanskritkosha.com/.

The solution is courtesy of Edge copilot. Next comments provides the interaction with copilot. I don't really understand all of that regex/

funderburkjim commented 5 months ago

This is a transcript of the copilot dialog.

copilot_dialog_highlight.txt