Render thematic breaks as `- - - -`.
Chris Pressey
5 months ago
14 | 14 |
### TODO
|
15 | 15 |
|
16 | 16 |
* Allow specifying output file. If not specified, output to stdout.
|
17 | |
* Horizontal rule should be `- - - -`
|
18 | 17 |
* No extra newline after an HTML comment
|
19 | 18 |
* Extra blank lines after list items are sometimes nice for spacing - retain them if possible
|
76 | 76 |
return f"[{link_text}][{label}]"
|
77 | 77 |
title = f" {link_title}" if link_title is not None else ""
|
78 | 78 |
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
|