From 0c5e4afa7cc608067e3bf187977b087df322f319 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 13 Apr 2023 17:07:58 +0200 Subject: Remove LinkLine type from markup This was not fully implemented and looks better as normal text line than as
 element.
---
 markup.go | 6 ------
 1 file changed, 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
%s
", line) case HeadingLine: retval += fmt.Sprintf("\n

%s

", line) case UnorderedListItem: -- cgit v1.2.3-70-g09d2