Skip to content

Commit 6d1ef25

Browse files
committed
Switched social plugin to other hook
1 parent 45f60a6 commit 6d1ef25

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

material/plugins/social/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def on_config(self, config):
163163
self._image_promises = []
164164

165165
# Create social cards
166-
def on_page_markdown(self, markdown, page, config, files):
166+
def on_page_content(self, html, page, config, files):
167167
if not self.config.cards:
168168
return
169169

src/plugins/social/plugin.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def on_config(self, config):
163163
self._image_promises = []
164164

165165
# Create social cards
166-
def on_page_markdown(self, markdown, page, config, files):
166+
def on_page_content(self, html, page, config, files):
167167
if not self.config.cards:
168168
return
169169

0 commit comments

Comments
 (0)