We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47c6bb9 commit bc83741Copy full SHA for bc83741
bilibili_api/opus.py
@@ -173,6 +173,8 @@ async def markdown(self) -> str:
173
content = para["code"]["content"]
174
content = html.unescape(content)
175
para_raw = f"``` {lang}\n{content}\n```\n\n"
176
+ if para["align"] == 1:
177
+ para_raw = f"<center>\n\n{para_raw}\n\n</center>"
178
markdown += f"{para_raw}\n\n"
179
180
meta_yaml = yaml.safe_dump(self.__info, allow_unicode=True)
0 commit comments