<div dir="auto">The actual files are a custom binary format which is not documented and is not intended to be any sort of standard accessed by anything other than the library itself.<div dir="auto"><br></div><div dir="auto">Most newer works are imported from an OSIS file. Some older ones were imported from GBF (I think?) or ThML (which is basically some basic HTML display components mixed with a few tags for identifying things like words of Christ or divine names). However, once they are imported as modules some of that structure is lost to the proprietary binary format of the SWORD module files.</div><div dir="auto"><br></div><div dir="auto">If you want the text in Markdown the best way is to create a filter like the existing filters in the engine which can be used to generate HTML, LaTeX, etc and write some which produce Markdown output.</div><div dir="auto"><br></div><div dir="auto">Although, since Markdown is basically simplified HTML that is specifically intended to make HTML easier to write, why wouldn't you just render out HTML from the existing filters and drop that into your Markdown editor? Every md editor and renderer I've used will pass HTML through unchanged, allowing the author to use its full syntax when they wanted to.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 15, 2023, 21:04 Aaron Rainbolt <<a href="mailto:arraybolt3@gmail.com">arraybolt3@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I had an idea of making a primarily Markdown-centric SWORD frontend<br>
that would help with writing Bible studies and whatnot for<br>
Markdown-based platforms like Reddit or Obsidian notes. For this<br>
purpose, I want to parse the internal markup used by SWORD in its<br>
modules, and then use my own custom code to generate Markdown from<br>
that.<br>
<br>
Obviously I can learn a lot about this markup by simply looking at<br>
modules that use it, but I do wonder, is this markup at all<br>
standardized? Is it documented anywhere? Does it have a name of some<br>
sort that I can use to find handlers and tools for it in the SWORD API<br>
docs?<br>
<br>
Thanks,<br>
Aaron<br>
_______________________________________________<br>
sword-devel mailing list: <a href="mailto:sword-devel@crosswire.org" target="_blank" rel="noreferrer">sword-devel@crosswire.org</a><br>
<a href="http://crosswire.org/mailman/listinfo/sword-devel" rel="noreferrer noreferrer" target="_blank">http://crosswire.org/mailman/listinfo/sword-devel</a><br>
Instructions to unsubscribe/change your settings at above page<br>
</blockquote></div>