-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open
Description
Contribution guidelines
- I've read the contribution guidelines and wholeheartedly agree
I've found a bug and checked that ...
- ... the problem doesn't occur with the
mkdocsorreadthedocsthemes - ... the problem persists when all overrides are removed, i.e.
custom_dir,extra_javascriptandextra_css - ... the documentation does not mention anything about my problem
- ... there are no open or closed issues that are related to my problem
Description
I've noticed that my code annotations only appear with their numbering on the printed output on Firefox 93.0 and Chrome 94 when using the example provided in the documentation.
Expected behaviour
Code annotations should be fully visible and printed below a code block.
Actual behaviour
Only the list numbers are visible below a code block.
Steps to reproduce
- Create a new mkdocs project
mkdocs new .. - Use the configuration posted below.
- Edit the index.md:
# Welcome to MkDocs For full documentation visit [mkdocs.org](https://www.mkdocs.org). ## Testing ``` js document$.subscribe(function() { // (1) var tables = document.querySelectorAll(/* (2) */ "article table") tables.forEach(function(table) { new Tablesort(table) }) }) ``` 1. Annotation 1 2. Annotation 2
- Build documentation and print index.html
P.S. Workaround seems to be a new-line between the list elements:
# Welcome to MkDocs
For full documentation visit [mkdocs.org](https://www.mkdocs.org).
## Testing
``` js
document$.subscribe(function() { // (1)
var tables = document.querySelectorAll(/* (2) */ "article table")
tables.forEach(function(table) {
new Tablesort(table)
})
})
```
1. Annotation 1
2. Annotation 2Package versions
- Python: 3.9.2
- MkDocs: 1.2.2
- Material: 7.3.2+insiders.3.1.2
Configuration
site_name: 'My Docs'
theme:
name: material
features:
- content.code.annotate
markdown_extensions:
- pymdownx.highlight
- pymdownx.superfencesSystem information
- Operating system: Windows 10
- Browser: Chrome 94.0.4606.71, Firefox 93.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open

