Skip to content

Commit

Permalink
markdown: Make order of extensions deterministic
Browse files Browse the repository at this point in the history
It makes the test from the previous commit pass reproducibly, and
not fail from time to time.

Refs retext-project/retext#98.
  • Loading branch information
mitya57 committed Dec 8, 2024
1 parent a06beb6 commit 397d3af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markups/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def _apply_extensions(
extension_names.add(canonical_name)
extension_configs[canonical_name] = config
self.md = self.markdown.Markdown(
extensions=list(extension_names),
extensions=sorted(extension_names),
extension_configs=extension_configs,
output_format="html5",
)
Expand Down

0 comments on commit 397d3af

Please sign in to comment.