summaryrefslogtreecommitdiff
path: root/markup.go
diff options
context:
space:
mode:
Diffstat (limited to 'markup.go')
-rw-r--r--markup.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/markup.go b/markup.go
index 7170bd8..fd1b277 100644
--- a/markup.go
+++ b/markup.go
@@ -11,15 +11,11 @@ type LineType int8
const (
TextLine LineType = iota
- LinkLine
HeadingLine
UnorderedListItem
)
func getLineType(line string) LineType {
- if strings.HasPrefix(line, "=>") {
- return LinkLine
- }
if strings.HasPrefix(line, "#") {
return HeadingLine
}
@@ -59,8 +55,6 @@ func (m Markup) html() string {
continue
}
switch lineType {
- case LinkLine:
- retval += fmt.Sprintf("\n<pre>%s</pre>", line)
case HeadingLine:
retval += fmt.Sprintf("\n<h3>%s</h3>", line)
case UnorderedListItem: