Skip to content

Commit

Permalink
playing some more
Browse files Browse the repository at this point in the history
Signed-off-by: Miek Gieben <miek@miek.nl>
  • Loading branch information
miekg committed Nov 8, 2023
1 parent 0397b44 commit 1fd71b5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions render/pod/renderer.go
Expand Up @@ -477,10 +477,7 @@ func (r *Renderer) text(w io.Writer, node *ast.Text, entering bool) {
if !entering {
return
}
text := node.Literal
// A hyphen must be escaped otherwise it will be an em/en-dash.
text = bytes.Replace(text, []byte("-"), []byte("\\-"), -1)
r.out(w, text)
r.out(w, node.Literal)
}

func (r *Renderer) footnotes(w io.Writer, node ast.Node, entering bool) {
Expand Down

0 comments on commit 1fd71b5

Please sign in to comment.