65d25fc3f9
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. |
||
---|---|---|
.. | ||
admin.go | ||
campaigns.go | ||
handlers.go | ||
i18n.go | ||
import.go | ||
init.go | ||
install.go | ||
lists.go | ||
main.go | ||
manager_db.go | ||
media.go | ||
notifications.go | ||
public.go | ||
queries.go | ||
settings.go | ||
subscribers.go | ||
templates.go | ||
updates.go | ||
upgrade.go | ||
utils.go |