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