Skip to content

Commit

Permalink
Fixed issues related to latest Pygments and Pymdown Extensions (#3862)
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Apr 30, 2022
1 parent d8d734d commit f7be5c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions requirements.txt
Expand Up @@ -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
3 changes: 1 addition & 2 deletions src/assets/javascripts/components/content/code/_/index.ts
Expand Up @@ -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)
Expand Down
Expand Up @@ -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
Expand Down

0 comments on commit f7be5c7

Please sign in to comment.