diff --git a/docs/reference/code-blocks.md b/docs/reference/code-blocks.md index d622b2c6e..eebd4ca94 100644 --- a/docs/reference/code-blocks.md +++ b/docs/reference/code-blocks.md @@ -91,18 +91,18 @@ configuring syntax highlighting of code blocks: : :octicons-milestone-24: Default: `table` – The Highlight extension provides three ways to add line numbers, all of which are supported by Material for MkDocs. While `table` wraps a code block in a table, `inline` and - `pymdownx.inline` render line numbers as part of the line itself: + `pymdownx-inline` render line numbers as part of the line itself: ``` yaml markdown_extensions: - pymdownx.highlight: - linenums_style: pymdownx.inline + linenums_style: pymdownx-inline ``` Note that `inline` will put line numbers next to the actual code, which means that they will be included when selecting text with the cursor or copying a code block to the clipboard. Thus, the usage of `table` or - `pymdownx.inline` is recommended. + `pymdownx-inline` is recommended. _Material for MkDocs doesn't provide official support for the other options of this extension, so they may be supported but might yield unexpected results. diff --git a/material/base.html b/material/base.html index 646d1aba5..ab76a1ffc 100644 --- a/material/base.html +++ b/material/base.html @@ -180,7 +180,7 @@ {% if "navigation.top" in features %} - + {% include ".icons/material/arrow-up.svg" %} {% endif %} diff --git a/material/partials/languages/en.html b/material/partials/languages/en.html index 1eb770050..359e40789 100644 --- a/material/partials/languages/en.html +++ b/material/partials/languages/en.html @@ -33,5 +33,6 @@ "source.file.date.updated": "Last update", "source.file.date.created": "Created", "tabs.title": "Tabs", - "toc.title": "Table of contents" + "toc.title": "Table of contents", + "top.title": "Back to top" }[key] }}{% endmacro %} diff --git a/package-lock.json b/package-lock.json index f29f39e27..826ed102c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1866,9 +1866,9 @@ } }, "esbuild": { - "version": "0.11.17", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.11.17.tgz", - "integrity": "sha512-Yj+rQATpLLU36ymg0/laLXn9FUoiGUl7mDPUJ0toQ5nXKFrj/rmIEkQ34T1GeiV2cP2SrT0G0s7xiNuDcsIyBg==", + "version": "0.11.18", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.11.18.tgz", + "integrity": "sha512-KD7v4N9b5B8bxPUNn/3GA9r0HWo4nJk3iwjZ+2zG1ffg+r8ig+wqj7sW6zgI6Sn4/B2FnbzqWxcAokAGGM5zwQ==", "dev": true }, "escalade": { diff --git a/package.json b/package.json index d817257b4..73e045a47 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "autoprefixer": "^10.2.5", "chokidar": "^3.5.1", "cssnano": "^5.0.2", - "esbuild": "^0.11.17", + "esbuild": "^0.11.18", "eslint": "^7.25.0", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-import": "^2.22.1", diff --git a/src/base.html b/src/base.html index 4711e73b9..66b165cd7 100644 --- a/src/base.html +++ b/src/base.html @@ -341,6 +341,7 @@ diff --git a/src/partials/languages/en.html b/src/partials/languages/en.html index 8f0239eed..edd63d12c 100644 --- a/src/partials/languages/en.html +++ b/src/partials/languages/en.html @@ -53,5 +53,6 @@ "source.file.date.updated": "Last update", "source.file.date.created": "Created", "tabs.title": "Tabs", - "toc.title": "Table of contents" + "toc.title": "Table of contents", + "top.title": "Back to top" }[key] }}{% endmacro %}