Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
markup.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause */
10
11#ifndef DUNST_MARKUP_H
12#define DUNST_MARKUP_H
13
14enum markup_mode {
15 MARKUP_NULL,
16 MARKUP_NO,
17 MARKUP_STRIP,
18 MARKUP_FULL
19};
20
33char *markup_strip(char *str);
34
42void markup_strip_a(char **str, char **urls);
43
51void markup_strip_img(char **str, char **urls);
52
57char *markup_transform(char *str, enum markup_mode markup_mode);
58
59#endif
void markup_strip_img(char **str, char **urls)
Remove img-tags of a string.
Definition markup.c:144
void markup_strip_a(char **str, char **urls)
Remove HTML hyperlinks of a string.
Definition markup.c:69
char * markup_transform(char *str, enum markup_mode markup_mode)
Transform the string in accordance with markup_mode and settings.ignore_newline
Definition markup.c:317
char * markup_strip(char *str)
Strip any markup from text; turn it in to plain text.
Definition markup.c:230