Marked is an OSX application to preview Markdown syntax in HTML. It’s possible to configure AsciiDoc as an custom Markdown processor to create the HTML for your AsciiDoc files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
== Included Section | |
Look, I came from out of the [blue]#blue#! | |
-- | |
I'm keepin' it open. | |
An 'open block', like this one, can contain other blocks. | |
It can also act as any other block. (TODO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// uncomment line if you want the instance to be retained in application scope | |
// @ApplicationScoped | |
public class ApplicationInitializer | |
{ | |
public void onStartup(@Observes @Initialized ServletContext ctx) | |
{ | |
System.out.println("Initialized web application at context path " + ctx.getContextPath()); | |
} | |
} |
-
Pull out content from <content> tag in exported XML file
-
Replace blank lines w/ </p><p>, add <p> as first line and </p> as last line
-
Put that content into the body of a basic HTML document structure (so it looks like an HTML file)
-
convert using
pandoc --no-wrap -f html -t asciidoc post-content.html > post-content.adoc
-
use sed to cleanup
sed -i s/^image:/image::/ post-content.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts 'Hello, World!' |
NewerOlder