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.
'source-highlighter=coderay'
'coderay-css=style'
'linkcss!'
'icons=font'
'idprefix='
'idseparator=-'
'sectanchors'
'data-uri' - see above
Specific changes/fixes:
ascii_binder.gemspec:
add kramdown dependency
lib/ascii_binder/engine.rb:
add kramdown requirement
expand topic file definition to include both .adoc and .md files
when deleting extensions, only remove .adoc - this preserves legacy support
for _topic_map.yml entries with no file extension being assumed to be .adoc
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: