~samwhited/blogsync

714259c49a5a4d838f926f2eceab7c4e370f60aa — Sam Whited 1 year, 9 months ago a1a0c1d
blogsync: fix formatting directives
2 files changed, 4 insertions(+), 4 deletions(-)

M markdown.go
M publish.go
M markdown.go => markdown.go +3 -3
@@ 154,7 154,7 @@ func (*unwrapRenderer) renderText(w io.Writer, node *blackfriday.Node, entering 

	_, err := w.Write(bytes.ReplaceAll(node.Literal, []byte{'\n'}, []byte{' '}))
	if err != nil {
		panic(fmt.Errorf("error writing markdown to buffer: %w"))
		panic(fmt.Errorf("error writing markdown to buffer: %w", err))
	}
	return blackfriday.GoToNext
}


@@ 178,7 178,7 @@ func (*unwrapRenderer) renderHTMLBlock(w io.Writer, node *blackfriday.Node, ente
	if len(node.Literal) > 0 {
		_, err := w.Write(node.Literal)
		if err != nil {
			panic(fmt.Errorf("error writing markdown to buffer: %w"))
			panic(fmt.Errorf("error writing markdown to buffer: %w", err))
		}
	}
	// If a paragraph or other markdown element comes after HTML we need two line


@@ 199,7 199,7 @@ func (*unwrapRenderer) renderHTMLSpan(w io.Writer, node *blackfriday.Node, enter
	if len(node.Literal) > 0 {
		_, err := w.Write(node.Literal)
		if err != nil {
			panic(fmt.Errorf("error writing markdown to buffer: %w"))
			panic(fmt.Errorf("error writing markdown to buffer: %w", err))
		}
	}


M publish.go => publish.go +1 -1
@@ 246,7 246,7 @@ Expects an API token to be exported as $%s.`, envToken),
						ID: postID,
					})
					if err != nil {
						debug.Println("error unpinning post %s: %v", err)
						debug.Println("error unpinning post %s: %v", slug, err)
					}
				}