Module: Kramdown
- Included in:
- Parser::Kramdown
- Defined in:
- lib/kramdown/error.rb,
lib/kramdown/utils.rb,
lib/kramdown/parser.rb,
lib/kramdown/element.rb,
lib/kramdown/options.rb,
lib/kramdown/version.rb,
lib/kramdown/document.rb,
lib/kramdown/converter.rb,
lib/kramdown/utils/html.rb,
lib/kramdown/parser/base.rb,
lib/kramdown/parser/html.rb,
lib/kramdown/converter/toc.rb,
lib/kramdown/converter/base.rb,
lib/kramdown/converter/html.rb,
lib/kramdown/utils/entities.rb,
lib/kramdown/converter/latex.rb,
lib/kramdown/parser/kramdown.rb,
lib/kramdown/parser/markdown.rb,
lib/kramdown/converter/kramdown.rb,
lib/kramdown/utils/ordered_hash.rb,
lib/kramdown/parser/kramdown/eob.rb,
lib/kramdown/parser/kramdown/html.rb,
lib/kramdown/parser/kramdown/link.rb,
lib/kramdown/parser/kramdown/list.rb,
lib/kramdown/parser/kramdown/math.rb,
lib/kramdown/parser/kramdown/table.rb,
lib/kramdown/parser/github_markdown.rb,
lib/kramdown/parser/kramdown/header.rb,
lib/kramdown/parser/kramdown/autolink.rb,
lib/kramdown/parser/kramdown/codespan.rb,
lib/kramdown/parser/kramdown/emphasis.rb,
lib/kramdown/parser/kramdown/footnote.rb,
lib/kramdown/parser/kramdown/codeblock.rb,
lib/kramdown/parser/kramdown/paragraph.rb,
lib/kramdown/parser/kramdown/blank_line.rb,
lib/kramdown/parser/kramdown/blockquote.rb,
lib/kramdown/parser/kramdown/extensions.rb,
lib/kramdown/parser/kramdown/line_break.rb,
lib/kramdown/parser/kramdown/html_entity.rb,
lib/kramdown/parser/kramdown/abbreviation.rb,
lib/kramdown/parser/kramdown/smart_quotes.rb,
lib/kramdown/parser/kramdown/escaped_chars.rb,
lib/kramdown/parser/kramdown/block_boundary.rb,
lib/kramdown/parser/kramdown/horizontal_rule.rb,
lib/kramdown/parser/kramdown/typographic_symbol.rb,
lib/kramdown/parser/github_markdown/github_codeblock.rb
Overview
– Copyright © 2009-2010 Thomas Leitner <[email protected]>
This file is part of kramdown.
kramdown is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>. ++
Defined Under Namespace
Modules: Converter, Options, Parser, Utils Classes: Document, Element, Error
Constant Summary collapse
- VERSION =
The kramdown version.
'0.13.4'
Class Method Summary collapse
-
.data_dir ⇒ Object
Return the data directory for kramdown.
Class Method Details
.data_dir ⇒ Object
Return the data directory for kramdown.
36 37 38 39 40 41 42 43 44 |
# File 'lib/kramdown/document.rb', line 36 def self.data_dir unless defined?(@@data_dir) require 'rbconfig' @@data_dir = File.(File.join(File.dirname(__FILE__), '..', '..', 'data', 'kramdown')) @@data_dir = File.(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 |