Skip to content

Commit ddfb9f8

Browse files
committed
Do not replace 'page.meta.' variant in markdown (breaking change)
1 parent 7c1d31c commit ddfb9f8

File tree

1 file changed

+2
-2
lines changed
  • mkdocs_git_revision_date_localized_plugin

1 file changed

+2
-2
lines changed

mkdocs_git_revision_date_localized_plugin/plugin.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def on_page_markdown(
168168

169169
page.meta["git_revision_date_localized"] = revision_date
170170
markdown = re.sub(
171-
r"\{\{\s*[page\.meta\.]*git_revision_date_localized\s*\}\}",
171+
r"\{\{\s*git_revision_date_localized\s*\}\}",
172172
revision_date,
173173
markdown,
174174
flags=re.IGNORECASE,
@@ -192,7 +192,7 @@ def on_page_markdown(
192192

193193
page.meta["git_creation_date_localized"] = creation_date
194194
markdown = re.sub(
195-
r"\{\{\s*[page\.meta\.]*git_creation_date_localized\s*\}\}",
195+
r"\{\{\s*git_creation_date_localized\s*\}\}",
196196
creation_date,
197197
markdown,
198198
flags=re.IGNORECASE,

0 commit comments

Comments
 (0)