all repos — grayfriday @ bcd5b5b78026800098fd6e4be677763966ffd22b

blackfriday fork with a few changes

Move table cell fields to a nested struct
Vytautas Ĺ altenis vytas@rtfb.lt
Fri, 01 Apr 2016 11:46:09 +0300
commit

bcd5b5b78026800098fd6e4be677763966ffd22b

parent

4ba991937b01bee0956c7bfc890ea0b0bf7f64b4

1 files changed, 6 insertions(+), 2 deletions(-)

jump to
M node.gonode.go

@@ -87,6 +87,11 @@ FenceLength uint32

FenceOffset uint32 } +type TableCellData struct { + IsHeader bool // This tells if it's under the header row + Align CellAlignFlags // This holds the value for align attribute +} + type Node struct { Type NodeType Parent *Node

@@ -104,10 +109,9 @@

ListData // If Type == List, this holds list info CodeBlockData // If Type == CodeBlock, this holds its properties LinkData // If Type == Link, this holds link info + TableCellData // If Type == TableCell, this holds its properties HeaderID string // If Type == Header, this might hold header ID, if present IsTitleblock bool - IsHeader bool // If Type == TableCell, this tells if it's under the header row - Align CellAlignFlags // If Type == TableCell, this holds the value for align attribute } func NewNode(typ NodeType) *Node {