redhataccess / ascii_binder

AsciiBinder is an AsciiDoc-based system for authoring and publishing closely related documentation sets from a single source.
https://asciibinder.net
MIT License
76 stars 39 forks source link

Adding Kramdown support to process Markdown files #107

Closed bexelbie closed 4 years ago

bexelbie commented 7 years ago

This is a proof of concept PR being submitted for feedback. It is not intended to be merged, yet.

Using the kramdown0 processer rich Markdown format is supported for side by side processing with existing AsciiDoc files.

Known Bug: The images used in Markdown files are currently not copied to the output directory. This is because AsciiDoc is currently processed through AsciiDoctor using the data-uri option. There is no analogous option in kramdown. Two options being considered:

a) Get Kramdown to implment a data-uri like option. b) Copy over image files as part of built sites in AsciiBinder when Markdown is detected. This could also result in a new option to allow custom override of the data-uri option.

Known Bug: The additional options (other than data-uri) passed ot AsciiDoctor have not been checked for analougous support in kramdown.

Specific changes/fixes:

ascii_binder.gemspec:

lib/ascii_binder/engine.rb:

lib/ascii_binder/tasks/guards.rb:

lib/ascii_binder/topic_entity.rb:

templates/_templates/page.html.erb:

templates/_topic_map.yml: templates/welcome/index.adoc: templates/welcome/markdown.md: