diff --git a/src/main.rs b/src/main.rs index c0ae4f9..fc1c188 100644 --- a/src/main.rs +++ b/src/main.rs @@ -300,16 +300,7 @@ fn handle_heading(line: &str, levels: usize) -> String { _ => "#".repeat(hashes.len() + levels), }; - // TODO: More "correct" format would be - // let title = format!("lib.{}.{}", self.category, self.name); - // let ident = format!( - // "lib.{}.{}", - // self.category, - // self.name.replace('\'', "-prime") - // ); - // -> {#function-library-{ident}-{rest} } - // Since this will be totally bullshitting if we want to migrate to a different rendering - format!("{leading_trivials}{new_hashes} {rest} {{#{rest}}}") + format!("{leading_trivials}{new_hashes} {rest}") } /// Dumb, mutable, hacky doc comment "parser". diff --git a/test.nix b/test.nix new file mode 100644 index 0000000..c3e1017 --- /dev/null +++ b/test.nix @@ -0,0 +1,17 @@ +{ + /** + Doc Comment + indent 1 + indent 2 + # H1 + + ## H2 + + ### H3 + + #### H4 + */ + # TODO + /**/ + a = 1; +} \ No newline at end of file