Small Go tool to convert Github markdown (plus HTML and Hugo shortcodes) to Gemini text files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
303 B

package main
import (
"testing"
)
func TestMd2gmi(t *testing.T) {
testlink := `hello [link](example.com) other stuff`
testlink_c := `hello
=> example.com link
other stuff`
_testlink := md2gmi(testlink)
if _testlink != testlink_c {
t.Error("Failed refactoring links - got: " + _testlink)
}
}