diff --git a/src/syntax/content/parser/token/table.rs b/src/syntax/content/parser/token/table.rs index 6b13f7a..cf5cb51 100644 --- a/src/syntax/content/parser/token/table.rs +++ b/src/syntax/content/parser/token/table.rs @@ -22,6 +22,8 @@ impl Table { pub fn add_cell(&mut self, content: &str) { if let Some(last) = self.contents.last_mut() { last.push(content.trim().to_string()); + } else { + self.contents.push(vec![content.trim().to_string()]); } } diff --git a/static/public/assets/style.css b/static/public/assets/style.css index 509b110..519fb8d 100644 --- a/static/public/assets/style.css +++ b/static/public/assets/style.css @@ -309,11 +309,17 @@ em#index-node-count { } table { - margin: auto; + margin: 20px auto; border-collapse: collapse; border: 0.5px dotted #666; } +table th { + background: #099; + color: #fff; + border-color: #222; +} + td, th { padding: 10px; border: 0.5px dotted #666; @@ -437,6 +443,11 @@ p.verse { border-width: 1px; } + table th { + background: #002929; + border-color: #666; + } + } @media (max-width: 600px) {