GithubHelp home page GithubHelp logo

runemadsen / asciidoc Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 3.0 163 KB

NB: YOU SHOULD PROBABLY USE THE ASCIIDOCTOR GEM INSTEAD. An AsciiDoc parser written in Ruby. Parses an AsciiDoc file into native Ruby objects, and provides an interface for exporting to HTML / PDF with custom .erb templates

Home Page: http://www.runemadsen.com

Ruby 96.99% Perl 3.01%

asciidoc's Introduction

asciidoc's People

Contributors

leif81 avatar runemadsen avatar shiffman avatar sklise avatar tobrien avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

shiffman sklise sjas

asciidoc's Issues

Use Tilt to support multiple template languages

Instead of looking for an .erb template directly, use the Tilt library to allow templates to be written in a variety of markup languages (erb, haml, slim, markdown, etc)

https://github.com/rtomayko/tilt#readme

Tilt is a thin interface over a bunch of different Ruby template engines in an attempt to make their usage as generic possible. This is useful for web frameworks, static site generators, and other systems that support multiple template engines but don't want to code for each of them individually.

Support block-level templating

AsciiDoc supports formatting at the block-level. For instance, it wraps a heading and the paragraphs that follow it in a section wrapper when using the HTML exporter. This formatting is not currently possible with ruby-asciidoc.

Here are two examples of block-level templating from AsciiDoc:

[sect1]
<div class="sect1{style? {style}}{role? {role}}">
<h2{id? id="{id}"}>{numbered?{sectnum} }{title}</h2>
<div class="sectionbody">
|
</div>
</div>
[exampleblock]
<div class="exampleblock{role? {role}}"{id? id="{id}"}>
<div class="title">{caption={example-caption} {counter:example-number}. }{title}</div>
<div class="content">
|
</div></div>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.