Browse Source

Fix link parsing

master
Trevor Slocum 2 years ago
parent
commit
11183c0c63
  1. 3
      CHANGELOG
  2. 2
      pkg/gmitohtml/convert.go

3
CHANGELOG

@ -1,2 +1,5 @@
1.0.1:
- Display navigation bar in pages
1.0.0:
- Initial release

2
pkg/gmitohtml/convert.go

@ -70,7 +70,7 @@ func Convert(page []byte, u string) []byte {
if l >= 6 && bytes.HasPrefix(line, []byte("=>")) {
splitStart := 2
if line[splitStart+1] == ' ' || line[splitStart+1] == '\t' {
if line[splitStart] == ' ' || line[splitStart] == '\t' {
splitStart++
}
split := bytes.SplitN(line[splitStart:], []byte(" "), 2)

Loading…
Cancel
Save