Fix link parsing

This commit is contained in:
Trevor Slocum 2020-11-24 14:31:14 -08:00
parent f8ae52eb7d
commit 11183c0c63
2 changed files with 4 additions and 1 deletions

View file

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

View file

@ -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)