git @ Cat's Eye Technologies Cleandown / c9d4e28
Render thematic breaks as `- - - -`. Chris Pressey 5 months ago
2 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1414 ### TODO
1515
1616 * Allow specifying output file. If not specified, output to stdout.
17 * Horizontal rule should be `- - - -`
1817 * No extra newline after an HTML comment
1918 * Extra blank lines after list items are sometimes nice for spacing - retain them if possible
7676 return f"[{link_text}][{label}]"
7777 title = f" {link_title}" if link_title is not None else ""
7878 return f"[{link_text}]({element.dest}{title})"
79
80 def render_thematic_break(self, element) -> str:
81 """Override to render thematic breaks as `- - - -`."""
82 result = self._prefix + "- - - -\n"
83 self._prefix = self._second_prefix
84 return result