aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ast/container.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/ast/container.rs b/src/ast/container.rs
index c8ef58c..4f41f9d 100644
--- a/src/ast/container.rs
+++ b/src/ast/container.rs
@@ -216,13 +216,6 @@ impl Ast {
// find out how deep it goes.
let level =
line.trim_start().chars().take_while(|&c| c == '#').count();
- let level = if level > 0
- && line.chars().nth(level).map_or(true, char::is_whitespace)
- {
- level
- } else {
- 0
- };
nodes.push(Node::Heading {
level,