Convert the fence kind to the actual character used to build the fence.
(self)
| 1495 | impl MarkdownFenceKind { |
| 1496 | /// Convert the fence kind to the actual character used to build the fence. |
| 1497 | fn to_char(self) -> char { |
| 1498 | match self { |
| 1499 | MarkdownFenceKind::Backtick => '`', |
| 1500 | MarkdownFenceKind::Tilde => '~', |
| 1501 | } |
| 1502 | } |
| 1503 | } |
| 1504 | |
| 1505 | /// A single line in a code example found in a docstring. |