Fix title for admonitions

This commit is contained in:
Kujiu 2021-01-31 13:34:25 +01:00
parent 28e9f322f3
commit 0d8ae97b88
Signed by: kujiu
GPG key ID: ABBB2CAC6855599F
2 changed files with 8 additions and 1 deletions

View file

@ -10,3 +10,10 @@ your project.
You can add a `gemini_footer` in config, formatted under the You can add a `gemini_footer` in config, formatted under the
Gemini specification. You need to set `gemini_baseurl` for Gemini specification. You need to set `gemini_baseurl` for
good url in links. good url in links.
TODO
----
- Table support
- Copy images
- ablog support with RSS generation

View file

@ -493,7 +493,7 @@ class GeminiTranslator(SphinxTranslator):
pass pass
def _visit_admonition(self, node: Element) -> None: def _visit_admonition(self, node: Element) -> None:
pass self.add_text(admonitionlabels[node.tagname] + ':')
def _depart_admonition(self, node: Element) -> None: def _depart_admonition(self, node: Element) -> None:
self.end_block() self.end_block()