implement email editor w/ live(?) preview

not accessible in the ui currently, but the object is available as
window.ee for testing.
This commit is contained in:
Harvey Tindall
2021-02-20 22:49:59 +00:00
parent 6ffdd4dad7
commit 058cac2e7b
11 changed files with 285 additions and 40 deletions
+3 -1
View File
@@ -44,7 +44,9 @@ func stripMarkdown(md string) string {
}
fullLinks := make([]string, len(openSquares))
for i := range openSquares {
fullLinks[i] = md[openSquares[i] : closeBrackets[i]+1]
if openSquares[i] != -1 && closeBrackets[i] != -1 {
fullLinks[i] = md[openSquares[i] : closeBrackets[i]+1]
}
}
for i, _ := range openSquares {
md = strings.Replace(md, fullLinks[i], links[i], 1)