changeset 31713:32a563a01da4

minirst: remove "admonition" from _admonitions The "admonition" rst primitive is split into "specific" admonitions ("attention," "caution," etc) and the "generic" admonition ("admonition"). For more, see http://docutils.sourceforge.net/docs/ref/rst/directives.html#admonitions The _admonitions set and keys of the _admonitiontitles dict overlap exactly except _admonitions has an "admonition" entry. Nowhere in Mercurial is the "admonition" admonition directive used. Even if it were, it doesn't have a title, so it wouldn't be rendered correctly. So, let's remove "admonition" from the set of recognized admonition directives.
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 29 Mar 2017 20:05:18 -0700
parents b3640334a43a
children bbf7a29dcf9b
files mercurial/minirst.py
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/minirst.py	Wed Mar 29 19:59:47 2017 -0700
+++ b/mercurial/minirst.py	Wed Mar 29 20:05:18 2017 -0700
@@ -414,7 +414,6 @@
 
 
 _admonitions = set([
-    'admonition',
     'attention',
     'caution',
     'danger',