summaryrefslogtreecommitdiff
path: root/src/pretty.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-07 18:06:27 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-07 18:17:47 +0200
commitf26526ba75582f24d2bae18a43de3f6622c588ec (patch)
treed5faa4a1e8354344a5aae023517a81f8521e5ef7 /src/pretty.rs
parent7218892c722ca583297c0ebbda350bdf6f16d3ce (diff)
Switch back to hashtags for headings
Diffstat (limited to 'src/pretty.rs')
-rw-r--r--src/pretty.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pretty.rs b/src/pretty.rs
index 397bbc38..49f6fd82 100644
--- a/src/pretty.rs
+++ b/src/pretty.rs
@@ -141,7 +141,7 @@ impl PrettyWithMap for Node {
impl PrettyWithMap for HeadingNode {
fn pretty_with_map(&self, p: &mut Printer, map: Option<&NodeMap>) {
for _ in 0 .. self.level {
- p.push('=');
+ p.push('#');
}
self.contents.pretty_with_map(p, map);
}
@@ -666,7 +666,7 @@ mod tests {
roundtrip("hi");
// Heading.
- roundtrip("= *Ok*");
+ roundtrip("# *Ok*");
// Raw.
roundtrip("``");