Skip to content

Commit bc83741

Browse files
committed
feat: centered paragraph of opus
1 parent 47c6bb9 commit bc83741

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bilibili_api/opus.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ async def markdown(self) -> str:
173173
content = para["code"]["content"]
174174
content = html.unescape(content)
175175
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>"
176178
markdown += f"{para_raw}\n\n"
177179

178180
meta_yaml = yaml.safe_dump(self.__info, allow_unicode=True)

0 commit comments

Comments
 (0)