Breakout Parser

- simplified Textile parser with some Assembla-specific features
- converts Textile into HTML

Build dependencies

- You will need Flex, Bison, GCC, and GNU Make to build this gem.

Development

Compiling and testing
  - just run 'rake' in the repos root dir

Just compiling
  - just run 'rake build_ext'

Testing
  - just run 'rspec' or 'rspec spec/'

Usage

require 'breakout_parser'
puts BreakoutParser.parse("h1. xxx", "my_space")
# prints: <h1 id="h-xxx">xxx</h1>

puts BreakoutParser.parse_links_only("h1. http://xxx", "my_space")
# prints: h1. <a rel="nofollow" href="http://xxx">http://xxx</a>

Arguments

BreakoutParser.parse(
  data,			# data to parse
  space_name,		# space name - for links parsing
  site_url,		# [optional] global site url
  vcs_url,			# [optional] custom VCS url - f.ex. for github-hosted repos
  absolute_urls, # [optional] boolean value that denotes if URLs have to be absolute
  large_files_url, # [optional] URL used for large files (i.e. when using ADN/CDN)
  data_attributes, # [optional] hash of data attributes that would be added to links
)