Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions quote.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func (b *Quote) printHTML(p *printer) {
}

func (b *Quote) printMarkdown(p *printer) {
p.maybeNL()
p.maybeQuoteNL('>')
p.WriteString("> ")
defer p.pop(p.push("> "))
Expand Down
1 change: 1 addition & 0 deletions table.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ func (t *Table) printMarkdown(p *printer) {
rows = append(rows, xrow)
}

p.maybeNL()
p.maybeQuoteNL('|')
for i, cell := range hdr {
p.WriteString("| ")
Expand Down
1 change: 1 addition & 0 deletions testdata/basic_fmt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ placed within the reach of poodles.
The end.
-- want --
As Celine said:

> Love is the infinite
> placed within the reach of poodles.

Expand Down
7 changes: 7 additions & 0 deletions testdata/table_fmt.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,10 @@
| --- | -------- | --- |
| 1 | 22345678 | 3 |
| a | b | c |
-- preceding text --
Text.

| foo | bar | baz |
| --- | -------- | --- |
| 1 | 22345678 | 3 |
| a | b | c |