diff options
author | xengineering <me@xengineering.eu> | 2023-04-13 17:07:58 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-04-13 17:59:37 +0200 |
commit | 0c5e4afa7cc608067e3bf187977b087df322f319 (patch) | |
tree | 6fd4b2decdfcd0ee6e09dc027c09a614758a8605 | |
parent | ec1936c20647ba405bd2cc457c16a02dfdf56216 (diff) | |
download | ceres-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.go | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -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: |