@@ -109,7 +109,18 @@ def __init__(self) -> None:
109109 self .mailingList : str | None = None
110110 self .mailingListArchives : str | None = None
111111 self .markupShorthands : config .BoolSet = config .BoolSet (
112- ["css" , "dfn" , "biblio" , "markup" , "http" , "idl" , "cddl" , "algorithm" , "repository-links" ],
112+ [
113+ "css" ,
114+ "dfn" ,
115+ "biblio" ,
116+ "markdown-block" ,
117+ "markup" ,
118+ "http" ,
119+ "idl" ,
120+ "cddl" ,
121+ "algorithm" ,
122+ "repository-links" ,
123+ ],
113124 )
114125 self .maxToCDepth : int | float | None = float ("inf" )
115126 self .metadataInclude : config .BoolSet = config .BoolSet (default = True )
@@ -760,7 +771,7 @@ def parseLinkedText(key: str, val: str, lineNum: str | int | None) -> list[tuple
760771def parseMarkupShorthands (key : str , val : str , lineNum : str | int | None ) -> config .BoolSet :
761772 # Format is comma-separated list of shorthand category followed by boolean.
762773 # Output is a boolset of the shorthand categories.
763- # TODO: Just call parseBoolistList instead
774+ # TODO: Just call parseBoolishList instead
764775 vals = [v .strip () for v in val .lower ().split ("," )]
765776 ret = config .BoolSet (default = False )
766777 validCategories = frozenset (
@@ -773,7 +784,8 @@ def parseMarkupShorthands(key: str, val: str, lineNum: str | int | None) -> conf
773784 "http" ,
774785 "idl" ,
775786 "macros-in-autolinks" ,
776- "markdown" ,
787+ "markdown-block" ,
788+ "markdown-inline" ,
777789 "markdown-escapes" ,
778790 "markup" ,
779791 "repository-links" ,
@@ -788,7 +800,13 @@ def parseMarkupShorthands(key: str, val: str, lineNum: str | int | None) -> conf
788800 )
789801 continue
790802 name , boolstring = pieces
791- if name not in validCategories :
803+ # markdown is an alias for markdown-inline.
804+ # TODO: convert all specs to use markdown-inline, and then turn markdown
805+ # into a shorthand for markdown-*.
806+ if name == "markdown" :
807+ name = "markdown-inline"
808+ assert name in validCategories
809+ elif name not in validCategories :
792810 m .die (f"Unknown Markup Shorthand category '{ name } '." , lineNum = lineNum )
793811 continue
794812 onoff = boolish (boolstring )
0 commit comments