md2teach/md2teach/style.h
Jeremy Rand 51f8ff5574 Remove the work on trying to support a BabelFish translator. Chris Vavruska has picked it up because I was struggling with dealing with the 64K code resource limit. His code is here: https://github.com/vavruska/markdownGS
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.
2021-06-22 23:56:19 -04:00

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_ */