19 lines
440 B
C
19 lines
440 B
C
|
|
// retoor <retoor@molodetz.nl>
|
||
|
|
|
||
|
|
#ifndef R_MARKDOWN_H
|
||
|
|
#define R_MARKDOWN_H
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief Applies basic syntax highlighting to a string of code.
|
||
|
|
* @param code The code string to highlight.
|
||
|
|
*/
|
||
|
|
void highlight_code(const char *code);
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief Parses a Markdown string and prints it to the console with ANSI color codes.
|
||
|
|
* @param markdown The raw Markdown string to parse.
|
||
|
|
*/
|
||
|
|
void parse_markdown_to_ansi(const char *markdown);
|
||
|
|
|
||
|
|
#endif
|