diff options
author | xengineering <me@xengineering.eu> | 2023-04-01 18:37:47 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-04-01 18:37:47 +0200 |
commit | 43e6305c45c6365288c1f512702f49ba2e52e941 (patch) | |
tree | 6d9b06c423a3baa1368e1b23fd80ff3c24fe66c5 /handler.go | |
parent | 88107366bce6b7f7c788171a18c40ad102904ff4 (diff) | |
download | ceres-43e6305c45c6365288c1f512702f49ba2e52e941.tar ceres-43e6305c45c6365288c1f512702f49ba2e52e941.tar.zst ceres-43e6305c45c6365288c1f512702f49ba2e52e941.zip |
Improve user interface
Diffstat (limited to 'handler.go')
-rw-r--r-- | handler.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -111,6 +111,9 @@ func recipeGet(w http.ResponseWriter, r *http.Request) { return } + titleRegex := regexp.MustCompile(`\# .*`) + elements[0].DescriptionMarkdown = titleRegex.ReplaceAllString(elements[0].DescriptionMarkdown, "") + // render markdown var buf bytes.Buffer goldmark.Convert([]byte(elements[0].DescriptionMarkdown), &buf) |