CaiJimmy / hugo-theme-stack

Card-style Hugo theme designed for bloggers
https://stack.jimmycai.com
GNU General Public License v3.0
4.89k stars 1.6k forks source link

[Bug]: <kbd> keyword doesn't show keyboard style #803

Closed digevil closed 1 year ago

digevil commented 1 year ago

What happened?

<kbd> keyword doesn't show keyboard style

it should look like this: ⇧ Shift + ⌘ Command + A

Hugo version

v0.111.3+extended darwin/arm64

Theme version

3.16

What browsers are you seeing the problem on?

Chrome

More information about the browser

Chrome 111, MacOS Ventura 13.2, m1 mac air

Relevant log output

No response

Link to the page with bug

https://dev.stack.jimmycai.com/p/markdown-syntax-guide/

Link to the source repository

https://github.com/CaiJimmy/hugo-theme-stack/blob/master/exampleSite/content/post/markdown-syntax/index.md

CaiJimmy commented 1 year ago

Thanks for reporting this issue.

It's because the example site does not have unsafe option of Markdown render enabled, so the HTML tags are sanitized:

image

But this theme does not have a special style for kbd tag either. I'll add this to the log.