| Top |
| gchar * | e_markdown_utils_text_to_html () |
| gchar * | e_markdown_utils_text_to_html_full () |
| gchar * | e_markdown_utils_html_to_text () |
| EMarkdownHTMLToTextFlags | e_markdown_utils_link_to_text_to_flags () |
gchar * e_markdown_utils_text_to_html (const gchar *plain_text,gssize length);
Convert plain_text
, possibly with markdown, into the HTML.
Note: The function can return NULL when was not built
with the markdown support.
plain_text |
plain text with markdown to convert to HTML |
|
length |
length of the |
text converted into HTML,
or NULL, when was not built with the markdown support.
Free the string with g_free(), when no longer needed.
[transfer full][nullable]
Since: 3.44
gchar * e_markdown_utils_text_to_html_full (const gchar *plain_text,gssize length,EMarkdownTextToHTMLFlags flags);
Convert plain_text
, possibly with markdown, into the HTML, influencing
the result HTML code with the flags
.
Note: The function can return NULL when was not built
with the markdown support.
plain_text |
plain text with markdown to convert to HTML |
|
length |
length of the |
|
flags |
a bit-or of |
text converted into HTML,
or NULL, when was not built with the markdown support.
Free the string with g_free(), when no longer needed.
[transfer full][nullable]
Since: 3.48
gchar * e_markdown_utils_html_to_text (const gchar *html,gssize length,EMarkdownHTMLToTextFlags flags);
Convert html
into the markdown text. The flags
influence
what can be preserved from the html
.
html |
a text in HTML |
|
length |
length of the |
|
flags |
a bit-or of |
HTML converted into markdown text.
Free the string with g_free(), when no longer needed.
[transfer full][nullable]
Since: 3.44
EMarkdownHTMLToTextFlags
e_markdown_utils_link_to_text_to_flags
(EHTMLLinkToText link_to_text);
Converts link_to_text
enum into corresponding EMarkdownHTMLToTextFlags flag.
Since: 3.52