mirror of
https://github.com/jeremysrand/md2teach.git
synced 2024-12-10 22:50:40 +00:00
51f8ff5574
My plan is to go forward with just a shell command which is focused only on markdown to Teach file conversion, intended to be used in my build engine under Golden Gate.
47 lines
780 B
C
47 lines
780 B
C
/*
|
|
* style.h
|
|
* md2teach
|
|
*
|
|
* Created by Jeremy Rand on 2021-04-24.
|
|
*
|
|
*/
|
|
|
|
#ifndef _GUARD_PROJECTmd2teach_FILEstyle_
|
|
#define _GUARD_PROJECTmd2teach_FILEstyle_
|
|
|
|
#include <types.h>
|
|
|
|
#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 styleShutdown(void);
|
|
extern void setStyle(tStyleType styleType, uint16_t textMask, uint16_t headerSize);
|
|
extern void closeStyle(void);
|
|
|
|
Handle styleHandle(void);
|
|
uint8_t * stylePtr(void);
|
|
uint32_t styleSize(void);
|
|
|
|
|
|
#endif /* define _GUARD_PROJECTmd2teach_FILEstyle_ */
|