A markdown to teach text converter ORCA shell command for the GS based on md4c.
Go to file
Jeremy Rand 3456321b23 Change from stdio to direct GS/OS calls for writing the file. Need to switch from a text file to a teach file and write the resources next. 2021-04-22 20:21:14 -04:00
md2teach Change from stdio to direct GS/OS calls for writing the file. Need to switch from a text file to a teach file and write the resources next. 2021-04-22 20:21:14 -04:00
md2teach.xcodeproj Improve the pure text output of the converter. It now handles numbered and unnumbered lists. It adds a horizontal line for HR. Spacing is better between blocks. It no longer inserts a leading blank line at the top of the document. 2021-04-21 00:00:01 -04:00
LICENSE Add a readme and license file. 2021-04-13 23:53:20 -04:00
README.md Review all uses of int and unsigned and promote them to int32_t or uint32_t as required. 2021-04-16 00:26:25 -04:00

README.md

md2teach

This repository is work-in-progress to try to use md4c to create a markdown to Teach text converter ORCA shell program for the Apple //GS. You should not try to use this tool because it doesn't work yet.

The goal really is to use this shell command from GoldenGate as part of my Apple2GSBuildPipeline in order to write documentation for GS projects in a more modern file format. Also, markdown is trivial to commit to git repositories but the presence of the resource fork in Teach files make them problematic.

The files md4c.c and md4c.h are (hopefully) slightly modified versions of the files from the md4c project. It is shocking how portable that code was and it worked almost immediately. I am marking up some of my changes with the comment tag GS_SPECIFIC. In general, many unsigned types were converted to uint32_t and int types converted to int32_t.