Markdown → HTML
Turn plain Markdown into clean HTML — a bare fragment, or a complete styled document ready for a cWebView, an email, or the disk. Tables, emphasis, lists, and a custom blank-line spacer extension all just work.
Three Parameters and No Exceptions
A native library that gives DataFlex four things it never really
needed — Markdown to HTML, Handlebars templating, PDF page counting,
and case-insensitive replace. Each is fronted by a small, idiomatic
DataFlex wrapper that handles buffers, UTF-8, and errors for you. Drop
in the DLL, Use the package, call the function.
Turn plain Markdown into clean HTML — a bare fragment, or a complete styled document ready for a cWebView, an email, or the disk. Tables, emphasis, lists, and a custom blank-line spacer extension all just work.
Render a Handlebars template against a JSON data context — loops, conditionals, nested properties, and HTML escaping included. Keep your templates as plain text so business users can edit wording without touching DataFlex code.
Ask any PDF how many pages it has with a single call. Clear negative error codes tell you when a file is missing or isn't a valid PDF — no shelling out to external tools, no temporary files.
The Replace and Replaces you wish DataFlex shipped with — same argument order, but matching ignores letter case. Replace the first match or every match, with the casing of your replacement preserved exactly.
Every function is fronted by a small .pkg that handles
buffer sizing, UTF-8 conversion, and null terminators — resizing and
retrying automatically. You call simple DataFlex functions and never
manage memory directly.
The real power is in combining them — merge live JSON data into a Markdown template with Handlebars, then render the result to a finished, styled HTML document. Data-driven invoices and reports in three calls.