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/converter/bean_html.rb,
lib/kramdown/parser/kramdown/eob.rb,
lib/kramdown/parser/bean_kramdown.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/image.rb,
lib/kramdown/parser/kramdown/table.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/bean_kramdown/oembed.rb,
lib/kramdown/parser/kramdown/html_entity.rb,
lib/kramdown/parser/kramdown/abbreviation.rb,
lib/kramdown/parser/kramdown/smart_quotes.rb,
lib/kramdown/parser/bean_kramdown/info_box.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
Overview
– Copyright © 2009-2012 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.7'
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.
38 39 40 41 42 43 44 45 46 |
# File 'lib/kramdown/document.rb', line 38 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 |