This commit is contained in:
2025-08-06 08:50:32 +02:00
parent 5cb52ba6b1
commit 04403b62a4
83 changed files with 892 additions and 807 deletions

View File

@@ -1,7 +1,6 @@
module elements
//TODO: def is broken, way how we do it is bad
// TODO: def is broken, way how we do it is bad
@[heap]
pub struct Def {

View File

@@ -39,7 +39,7 @@ fn (self Paragraph) html() !string {
mut out := self.DocBase.html()! // the children should have all the content
if self.children.len == 1 {
if out.trim_space() != '' {
if self.children[0] or { panic("bug") } is Link {
if self.children[0] or { panic('bug') } is Link {
return out
} else {
return out