\$sum_(i=1)^n i^3=((n(n+1))/2)^2\$
AsciiDoc source
:stem: asciimath
:stem: asciimath
Column A | Column B | Column C |
---|---|---|
A1 |
B1 |
C1 |
A2 |
B2 |
C2 |
#!/usr/bin/env ruby | |
require 'asciidoctor/extensions' | |
class AngularLocalizerTreeprocessor < Asciidoctor::Extensions::Treeprocessor | |
def process document | |
document.blocks? ? (localize_blocks document) : nil | |
end | |
def localize_blocks node |
buildscript { | |
dependencies { | |
classpath 'org.asciidoctor:asciidoctorj:1.5.4.1' | |
} | |
} | |
plugins { | |
id 'org.asciidoctor.convert' version '1.5.3' | |
id 'com.github.jruby-gradle.base' version '1.3.3' | |
} |
#!/bin/sh | |
jrunscript -e 'print(java.lang.System.getProperty("java.home").replaceAll("\\"+java.io.File.separator+"jre$",""))' |
require 'asciidoctor/extensions' | |
# Reconfigure AST to convert all blocks with the role SLIDE into | |
# sections and transferring the content to the new sections. | |
Asciidoctor::Extensions.register do | |
treeprocessor do | |
process do |doc| | |
doc.blocks.replace (doc.find_by role: 'SLIDE').map {|slide| | |
slide.parent.blocks.delete slide | |
sect = Asciidoctor::Section.new doc, 1, false |
= Atom Flight Manual | |
:source-highlighter: rouge | |
:toc: | |
:imagesdir: getting-started/sections/images | |
include::getting-started/index.asciidoc[lines=4..-1] | |
include::getting-started/sections/why-atom.asciidoc[lines=4..-1] |