Skip to content

Commit

Permalink
Merge branch 'master' into fix-copyright-year
Browse files Browse the repository at this point in the history
  • Loading branch information
niclasheinz authored Jan 18, 2025
2 parents cdab349 + 5586178 commit e4c4281
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
mkdocs-material-9.5.50 (2025-01-18)

* Fixed #7913: Social plugin renders attribute lists in page title

mkdocs-material-9.5.49+insiders-4.53.15 (2025-01-15)

* Fixed #7896: Scoped tags listings not rendering in subsections
Expand Down
4 changes: 4 additions & 0 deletions docs/changelog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Material for MkDocs

### 9.5.50 <small>January 18, 2025</small> { id="9.5.50" }

- Fixed #7913: Social plugin renders attribute lists in page title

### 9.5.49 <small>December 16, 2024</small> { id="9.5.49" }

- Adjusted title color in dark mode for all supported Mermaid.js diagrams
Expand Down
3 changes: 3 additions & 0 deletions docs/plugins/social.md
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,9 @@ Setting an option to `#!yaml null` resets the option.

### Layouts

<!-- md:sponsors -->
<!-- md:version insiders-4.33.0 -->

While it is possible and simple to build [custom layouts], the plugin ships
several predefined layouts, all of which are prefixed with `default`. The
following layouts are included:
Expand Down
2 changes: 1 addition & 1 deletion material/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.

__version__ = "9.5.49"
__version__ = "9.5.50"
2 changes: 1 addition & 1 deletion material/plugins/social/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def on_config(self, config):
self._image_promises = []

# Create social cards
def on_page_markdown(self, markdown, page, config, files):
def on_page_content(self, html, page, config, files):
if not self.config.cards:
return

Expand Down
2 changes: 1 addition & 1 deletion material/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<link rel="alternate" type="application/rss+xml" title="{{ lang.t('rss.updated') }}" href="{{ 'feed_rss_updated.xml' | url }}">
{% endif %}
<link rel="icon" href="{{ config.theme.favicon | url }}">
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-9.5.49">
<meta name="generator" content="mkdocs-{{ mkdocs_version }}, mkdocs-material-9.5.50">
{% endblock %}
{% block htmltitle %}
{% if page.meta and page.meta.title %}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mkdocs-material",
"version": "9.5.49",
"version": "9.5.50",
"description": "Documentation that simply works",
"keywords": [
"mkdocs",
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/social/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def on_config(self, config):
self._image_promises = []

# Create social cards
def on_page_markdown(self, markdown, page, config, files):
def on_page_content(self, html, page, config, files):
if not self.config.cards:
return

Expand Down

0 comments on commit e4c4281

Please sign in to comment.