|
|
@ -15,7 +15,9 @@ module Bristlecode
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def inspect(indent="")
|
|
|
|
def inspect(indent="")
|
|
|
|
"#{indent}TextNode: #{text_value}"
|
|
|
|
s = "#{indent}TextNode:\n"
|
|
|
|
|
|
|
|
text_value.each_line{|line| s += "#{indent} #{line}"}
|
|
|
|
|
|
|
|
s
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def to_html
|
|
|
|
def to_html
|
|
|
@ -23,13 +25,30 @@ module Bristlecode
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
##############################
|
|
|
|
|
|
|
|
# bold
|
|
|
|
|
|
|
|
##############################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BoldNode < Treetop::Runtime::SyntaxNode
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
class BoldOpenNode < Treetop::Runtime::SyntaxNode
|
|
|
|
class BoldOpenNode < Treetop::Runtime::SyntaxNode
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
class BoldCloseNode < Treetop::Runtime::SyntaxNode
|
|
|
|
class BoldCloseNode < Treetop::Runtime::SyntaxNode
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
class BoldNode < Treetop::Runtime::SyntaxNode
|
|
|
|
##############################
|
|
|
|
|
|
|
|
# italic
|
|
|
|
|
|
|
|
##############################
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ItalicNode < Treetop::Runtime::SyntaxNode
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ItalicOpenNode < Treetop::Runtime::SyntaxNode
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class ItalicCloseNode < Treetop::Runtime::SyntaxNode
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
class TagNode < Treetop::Runtime::SyntaxNode
|
|
|
|
class TagNode < Treetop::Runtime::SyntaxNode
|
|
|
|