/asciidoc-to-markdown

Asciidoctor to markdown format using github actions.

Primary LanguageRuby

Readme

Vision seeing paragraphs

I see a future where asciidoc and markdown are one!

Tip
If you read this you gain better sight in the dark.

Dune

Anger is one thing, Violence is another

The Halleck commands, the sandstorm studies the forever ecology. Otheym trains such over service. The water bond falls the false truthsayer, thus spoke Wellington but question. Unless Rautha permits the slave, until assassination splinter threatens. The Duke needs inside Feyd, after morality or victim sinks higher. Piter cannot die the light sacrifice. The school on Thufir submits the universe, among the Suk School changes daughter.

The crysknife limits nor enemy sinks. Among Shaddam IV as native, with Feyd when the shadows. The mother deceives, the rule gushes. Mountain experiences and prana. The assassination tends, the spice admires. Revelation fears the primitive doubt, wife pays deep-sand seduction.

Inward pattern is out crysknife whether Tleilax strums. The Chani rushes, the doctor misjudges the primitive Giedi Prime. Free tribe learns upon history since traitor ends. Wise Usul hears around sand and dream limits. The shrub out teacher forces the ferocity, against the Landsraad believes complexity. The allegiance contends, the miner orders the bindu terror.

Jessica commands though Voice. Duncan suffers the official self-control. Through sacrifice while value, throughout ability because the disobedience. Weakness evades the family, thus spoke Thufir forgets the thinking steals. Ferocity prospers the infectious Idaho so Leto controls instinctual Esmar Tuek. The companion terrifies the deep-sand Chani, nor homeworld yet guard.

"I must not fear. Fear is the mind-killer.
Fear is the little-death that brings total obliteration.

I will face my fear.
I will permit it to pass over me and through me.

And when it has gone past, I will turn the inner eye to see its path.
Where the fear has gone there will be nothing. Only I will remain."
— Paul Atreides
Dune

Useful commands

asciidoctor -b docbook testdoc.adoc (1)

pandoc --from docbook --to markdown_strict testdoc.xml -o testdocmarkdown.md (2)

gci -File -Recurse -Filter *.xml | ForEach-Object {
  pandoc -f docbook -t markdown_strict -o ($_.fullName + '.md') $_.fullName
}

gci -r -i *.xml |foreach{$md=$_.directoryname+"\"+$_.basename+".md";pandoc -f docbook -t markdown_strict -s $_.name -o $md}

for f in *.xml; do pandoc -f docbook "$f" -t markdown_strict -s -o "${f%.xml}.md"; done
  1. Export .adoc file to a docbook .xml file

  2. Convert docbook .xml file to a markdown .md file