作者:无味18_380 | 来源:互联网 | 2023-09-10 08:06
Expected Behaviour
When adding a html tags to H1's in markdown files, such as Font awesome icons, the html title should strip the html and therefore display the title text only
Current Behaviour
Adding html to H1's in markdown files is displayed unescaped in the title
Possible Solution
Stripping all html when reading the property in as a Jinja template. This PR addresses the issue in this way.
Steps to Reproduce
- Add
extension and
plugin
- Add Font Awseome icon to any .md file
- Navigate to the page you have edited
- The page title, also displayed as the tab title, contains the unescaped html
该提问来源于开源项目:squidfunk/mkdocs-material
Released as part of 4.4.2. Sorry for the delay.