summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-04-13 17:07:58 +0200
committerxengineering <me@xengineering.eu>2023-04-13 17:59:37 +0200
commit0c5e4afa7cc608067e3bf187977b087df322f319 (patch)
tree6fd4b2decdfcd0ee6e09dc027c09a614758a8605
parentec1936c20647ba405bd2cc457c16a02dfdf56216 (diff)
downloadceres-0c5e4afa7cc608067e3bf187977b087df322f319.tar
ceres-0c5e4afa7cc608067e3bf187977b087df322f319.tar.zst
ceres-0c5e4afa7cc608067e3bf187977b087df322f319.zip
Remove LinkLine type from markup
This was not fully implemented and looks better as normal text line than as <pre> element.
-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: