Fixed issues related to latest Pygments and Pymdown Extensions (#3862)

This commit is contained in:
Isaac Muse 2022-04-30 08:50:18 -06:00 committed by GitHub
parent d8d734d306
commit f7be5c75bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -23,5 +23,5 @@ jinja2>=2.11.1
markdown>=3.2
mkdocs>=1.3.0
mkdocs-material-extensions>=1.0.3
pygments>=2.10,<2.12
pymdown-extensions>=9.0,<9.4
pygments>=2.12
pymdown-extensions>=9.4

View File

@ -179,8 +179,7 @@ export function mountCodeBlock(
/* Handle code annotations */
const container = el.closest([
":not(td):not(.code) > .highlight",
".highlighttable"
":not(td):not(.code) > .highlight"
].join(", "))
if (container instanceof HTMLElement) {
const list = findCandidateList(container)

View File

@ -188,7 +188,7 @@
// previous (now deprecated) SuperFences code block grouping behavior
> pre:first-child,
> .highlight:first-child > pre:first-child,
> .highlighttable:first-child {
> .highlight:first-child > .highlighttable {
margin: 0;
// Remove rounded borders