listmonk/cmd
Kailash Nadh 65d25fc3f9 Improve campaign content format conversion.
Previously, converting between formats simply copied over raw content.
This update does actual conversion between different formats. While
lossy, this seems to a good enough approximation for even reasonbly
rich HTML content. Closes #348.

- richtext, html => plain
  Strips HTML and converts content to plain text.

- richtext, html => markdown
  Uses turndown (JS) lib to convert HTML to Markdown.

- plain => richtext, html
  Converts line breaks in plain text to HTML breaks.

- richtext => html
  "Beautifies" the HTML generated by the WYSIWYG editor unlike the
  earlier behaviour of dumping one long line of HTML.

- markdown => richtext, html
  Makes an API call to the backend to use the Goldmark lib to convert
  Markdown to HTML.
2021-05-09 15:36:31 +05:30
..
admin.go Refactor fetching of server config and settings. 2021-02-13 12:34:36 +05:30
campaigns.go Improve campaign content format conversion. 2021-05-09 15:36:31 +05:30
handlers.go Improve campaign content format conversion. 2021-05-09 15:36:31 +05:30
i18n.go Sort i18n language list on the settings UI 2021-04-21 19:04:04 +05:30
import.go Refactor and remove placeholder i18n func 2021-01-23 18:54:33 +05:30
init.go Add support for loading external i18n language files. 2021-04-17 14:26:56 +05:30
install.go Add support for loading external i18n language files. 2021-04-17 14:26:56 +05:30
lists.go Add a new public page for end users to subscribe to public lists. 2021-01-31 16:19:39 +05:30
main.go Add support for loading external i18n language files. 2021-04-17 14:26:56 +05:30
manager_db.go Clean up root and move app to `cmd` directory 2020-08-08 13:54:25 +05:30
media.go Refactor and remove placeholder i18n func 2021-01-23 18:54:33 +05:30
notifications.go Add generic HTTP postback `Messenger` support. 2020-10-10 18:52:08 +05:30
public.go Add hidden nonce (honeypot) field to filter bot autofills on subs page 2021-04-21 14:01:32 +05:30
queries.go Add a new public page for end users to subscribe to public lists. 2021-01-31 16:19:39 +05:30
settings.go Add a new public page for end users to subscribe to public lists. 2021-01-31 16:19:39 +05:30
subscribers.go Refactor campaign preview to use dummy campaign and subscriber. 2021-04-21 15:32:05 +05:30
templates.go Fix incorrect ID handling in update handlers 2021-03-09 17:54:07 +05:30
updates.go fix: Stop tickers 2021-01-27 12:58:17 +05:30
upgrade.go Add markdown support to campaign content. 2021-04-14 12:26:09 +05:30
utils.go Remove "normalization" of non-Latin characters in tags 2021-01-31 13:06:52 +05:30