mozilla / ai-guide

Mozilla AI Guide
Mozilla Public License 2.0
29 stars 21 forks source link

Language Models 101 - Font change associated with <code> elements #24

Open ashandoak opened 10 months ago

ashandoak commented 10 months ago

Sub-section title

WHAT IS FREQUENCY?

Please describe your issue

The

text in the WHAT IS FREQUENCY? section is inheriting a different font-family from the rest of the

-wrapped text in the document. Each of the text sections related to a figure has additional nested

elements, one of which is passing CSS classes to the text, including the ff-montserrat class, which is overriding the document font-family.

Perhaps this is intentional, but I don't read it as such given the rest of the formatting. If the the font is intended to be different, perhaps some additional

pdehaan commented 10 months ago

@heaversm Not sure if this is related the njk macros work. https://github.com/mozilla/ai-guide/blob/ba99281cad7a57bc4525b2fda58873d7f74b3652/templates/content/llms-101/index.md?plain=1#L58-L65

Not sure why it needs the <code> wrapper or if <div> or something more inert would also do... whatever is doing.