md2teach/md2teach/style.h

40 lines
648 B
C

/*
* style.h
* md2teach
*
* Created by Jeremy Rand on 2021-04-24.
*
*/
#ifndef _GUARD_PROJECTmd2teach_FILEstyle_
#define _GUARD_PROJECTmd2teach_FILEstyle_
#include "md4c.h"
// Defines
#define STYLE_TEXT_PLAIN 0u
#define STYLE_TEXT_MASK_STRONG 1u
#define STYLE_TEXT_MASK_EMPHASIZED 2u
// Typedefs
typedef enum tStyleType {
STYLE_TYPE_HEADER,
STYLE_TYPE_TEXT,
STYLE_TYPE_QUOTE,
STYLE_TYPE_CODE
} tStyleType;
// API
extern int styleInit(void);
extern void setStyle(tStyleType styleType, uint16_t textMask, uint16_t headerSize);
extern void closeStyle(void);
#endif /* define _GUARD_PROJECTmd2teach_FILEstyle_ */