Module: Kramdown

### Home Classes Methods

### In Files

- lib/kramdown/converter.rb
- lib/kramdown/converter/base.rb
- lib/kramdown/converter/html.rb
- lib/kramdown/converter/kramdown.rb
- lib/kramdown/converter/latex.rb
- lib/kramdown/converter/remove_html_tags.rb
- lib/kramdown/converter/syntax_highlighter.rb
- lib/kramdown/converter/toc.rb
- lib/kramdown/document.rb
- lib/kramdown/element.rb
- lib/kramdown/error.rb
- lib/kramdown/options.rb
- lib/kramdown/parser.rb
- lib/kramdown/parser/base.rb
- lib/kramdown/parser/gfm.rb
- lib/kramdown/parser/html.rb
- lib/kramdown/parser/kramdown.rb
- lib/kramdown/parser/kramdown/abbreviation.rb
- lib/kramdown/parser/kramdown/autolink.rb
- lib/kramdown/parser/kramdown/blank_line.rb
- lib/kramdown/parser/kramdown/block_boundary.rb
- lib/kramdown/parser/kramdown/blockquote.rb
- lib/kramdown/parser/kramdown/codeblock.rb
- lib/kramdown/parser/kramdown/codespan.rb
- lib/kramdown/parser/kramdown/emphasis.rb
- lib/kramdown/parser/kramdown/eob.rb
- lib/kramdown/parser/kramdown/escaped_chars.rb
- lib/kramdown/parser/kramdown/extensions.rb
- lib/kramdown/parser/kramdown/footnote.rb
- lib/kramdown/parser/kramdown/header.rb
- lib/kramdown/parser/kramdown/horizontal_rule.rb
- lib/kramdown/parser/kramdown/html.rb
- lib/kramdown/parser/kramdown/html_entity.rb
- lib/kramdown/parser/kramdown/line_break.rb
- lib/kramdown/parser/kramdown/link.rb
- lib/kramdown/parser/kramdown/list.rb
- lib/kramdown/parser/kramdown/math.rb
- lib/kramdown/parser/kramdown/paragraph.rb
- lib/kramdown/parser/kramdown/smart_quotes.rb
- lib/kramdown/parser/kramdown/table.rb
- lib/kramdown/parser/kramdown/typographic_symbol.rb
- lib/kramdown/parser/markdown.rb
- lib/kramdown/utils.rb
- lib/kramdown/utils/configurable.rb
- lib/kramdown/utils/entities.rb
- lib/kramdown/utils/html.rb
- lib/kramdown/utils/ordered_hash.rb
- lib/kramdown/utils/string_scanner.rb
- lib/kramdown/utils/unidecoder.rb
- lib/kramdown/version.rb

### Namespace

- MODULE Kramdown::Converter
- MODULE Kramdown::Options
- MODULE Kramdown::Parser
- MODULE Kramdown::Utils
- CLASS Kramdown::Document
- CLASS Kramdown::Element
- CLASS Kramdown::Error

### Methods

- ::data_dir

### Class/Module Index

Quicksearch

- Kramdown
- Kramdown::Converter
- Kramdown::Converter::Base
- Kramdown::Converter::Html
- Kramdown::Converter::Kramdown
- Kramdown::Converter::Latex
- Kramdown::Converter::MathEngine
- Kramdown::Converter::MathEngine::Itex2MML
- Kramdown::Converter::MathEngine::Mathjax
- Kramdown::Converter::MathEngine::MathjaxNode
- Kramdown::Converter::MathEngine::Ritex
- Kramdown::Converter::RemoveHtmlTags
- Kramdown::Converter::SyntaxHighlighter
- Kramdown::Converter::SyntaxHighlighter::Coderay
- Kramdown::Converter::SyntaxHighlighter::Minted
- Kramdown::Converter::SyntaxHighlighter::Rouge
- Kramdown::Converter::Toc
- Kramdown::Document
- Kramdown::Element
- Kramdown::Error
- Kramdown::Options
- Kramdown::Options::Boolean
- Kramdown::Parser
- Kramdown::Parser::Base
- Kramdown::Parser::GFM
- Kramdown::Parser::Html
- Kramdown::Parser::Html::Constants
- Kramdown::Parser::Html::ElementConverter
- Kramdown::Parser::Html::Parser
- Kramdown::Parser::Kramdown
- Kramdown::Parser::Markdown
- Kramdown::Utils
- Kramdown::Utils::Configurable
- Kramdown::Utils::Entities
- Kramdown::Utils::Entities::Entity
- Kramdown::Utils::Html
- Kramdown::Utils::OrderedHash
- Kramdown::Utils::StringScanner
- Kramdown::Utils::Unidecoder

No matching classes.

# Kramdown

TODO: use [[:alpha:]] in all regexp to allow parsing of international values in 1.9.1 NOTE: use @src.pre_match only before other check/match?/... operations, otherwise the content is changed

This file is based on code originally from the Stringex library and needs the data files from Stringex to work correctly.

### Constants

VERSION

  The kramdown version.

### Public Class Methods

data_dir() click to toggle source

Return the data directory for kramdown.

    # File lib/kramdown/document.rb, line 51
    def self.data_dir
      unless defined?(@@data_dir)
        require 'rbconfig'
        @@data_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'data', 'kramdown'))
        @@data_dir = File.expand_path(File.join(Config::CONFIG["datadir"], "kramdown")) if !File.exists?(@@data_dir)
        raise "kramdown data directory not found! This is a bug, please report it!" unless File.directory?(@@data_dir)
      end
      @@data_dir
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.