Skip to content

Commit f7be5c7

Browse files
authored
Fixed issues related to latest Pygments and Pymdown Extensions (#3862)
1 parent d8d734d commit f7be5c7

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ jinja2>=2.11.1
2323
markdown>=3.2
2424
mkdocs>=1.3.0
2525
mkdocs-material-extensions>=1.0.3
26-
pygments>=2.10,<2.12
27-
pymdown-extensions>=9.0,<9.4
26+
pygments>=2.12
27+
pymdown-extensions>=9.4

src/assets/javascripts/components/content/code/_/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,7 @@ export function mountCodeBlock(
179179

180180
/* Handle code annotations */
181181
const container = el.closest([
182-
":not(td):not(.code) > .highlight",
183-
".highlighttable"
182+
":not(td):not(.code) > .highlight"
184183
].join(", "))
185184
if (container instanceof HTMLElement) {
186185
const list = findCandidateList(container)

src/assets/stylesheets/main/extensions/pymdownx/_tabbed.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
// previous (now deprecated) SuperFences code block grouping behavior
189189
> pre:first-child,
190190
> .highlight:first-child > pre:first-child,
191-
> .highlighttable:first-child {
191+
> .highlight:first-child > .highlighttable {
192192
margin: 0;
193193

194194
// Remove rounded borders

0 commit comments

Comments
 (0)