|
| 1 | +from typing import List |
| 2 | + |
| 3 | + |
| 4 | +class Formatter: |
| 5 | + def plural(self, name: str, qu: int) -> str: |
| 6 | + return f"{name}{'s' if qu > 1 else ''}" |
| 7 | + |
| 8 | + def anchorize(self, name: str) -> str: |
| 9 | + return name.lower().replace(" ", "-") |
| 10 | + |
| 11 | + def nav_item(self, name: str, anchor: str) -> str: |
| 12 | + raise NotImplementedError |
| 13 | + |
| 14 | + def a(self, name: str, path: str) -> str: |
| 15 | + raise NotImplementedError |
| 16 | + |
| 17 | + def b(self, content: str) -> str: |
| 18 | + raise NotImplementedError |
| 19 | + |
| 20 | + def inline_code(self, content: str) -> str: |
| 21 | + raise NotImplementedError |
| 22 | + |
| 23 | + def code(self, content: str) -> str: |
| 24 | + raise NotImplementedError |
| 25 | + |
| 26 | + def section(self, title: str, content: str, anchor: str = "") -> str: |
| 27 | + raise NotImplementedError |
| 28 | + |
| 29 | + def ul(self, content: List[str]) -> str: |
| 30 | + raise NotImplementedError |
| 31 | + |
| 32 | + def div(self, *args: str) -> str: |
| 33 | + raise NotImplementedError |
| 34 | + |
| 35 | + def h1(self, name: str) -> str: |
| 36 | + raise NotImplementedError |
| 37 | + |
| 38 | + def h2(self, name: str) -> str: |
| 39 | + raise NotImplementedError |
| 40 | + |
| 41 | + def h3(self, name: str) -> str: |
| 42 | + raise NotImplementedError |
| 43 | + |
| 44 | + def h4(self, name: str) -> str: |
| 45 | + raise NotImplementedError |
| 46 | + |
| 47 | + def hr(self) -> str: |
| 48 | + raise NotImplementedError |
| 49 | + |
| 50 | + def new_line(self) -> str: |
| 51 | + raise NotImplementedError |
0 commit comments