Skip to content

Commit

Permalink
Fix opening space before strong
Browse files Browse the repository at this point in the history
  • Loading branch information
ascandella committed Nov 10, 2016
1 parent ac8c3af commit 250dd48
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ documentation.

## Status

Way, way alpha. Barebones. The minimalest.
Way, **way** alpha. Barebones. The minimalest.

## Code example

Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//
// Status
//
// Way, way alpha. Barebones. The minimalest.
// Way, **way** alpha. Barebones. The minimalest.
//
// Code example
//
Expand Down
6 changes: 6 additions & 0 deletions render/godoc.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,14 @@ func (g *GodocRenderer) RenderNode(w io.Writer, node *blackfriday.Node, entering
}

case blackfriday.Emph:
if entering {
g.out(w, space)
}
g.out(w, star)
case blackfriday.Strong:
if entering {
g.out(w, space)
}
g.out(w, starstar)

case blackfriday.Image:
Expand Down

0 comments on commit 250dd48

Please sign in to comment.