Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki
This commit is contained in:
commit
e00b2a0ac0
|
@ -77,7 +77,10 @@ SpanContext = SpanContext_String # Seems to be faster
|
|||
end
|
||||
|
||||
break if exit_on_chars && exit_on_chars.include?(c)
|
||||
break if exit_on_strings && exit_on_strings.any? {|x| src.cur_chars_are x}
|
||||
if exit_on_strings && exit_on_strings.any? {|x| src.cur_chars_are x}
|
||||
# Special case: bold nested in italic
|
||||
break unless !(['*', '_'] & exit_on_strings).empty? && ['**','__'].include?(src.cur_chars(2))
|
||||
end
|
||||
|
||||
# check if there are extensions
|
||||
if check_span_extensions(src, con)
|
||||
|
|
25
vendor/plugins/maruku/spec/block_docs/hard.md
vendored
Normal file
25
vendor/plugins/maruku/spec/block_docs/hard.md
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
More complicated tests for emphasis.
|
||||
*** Parameters: ***
|
||||
{}
|
||||
*** Markdown input: ***
|
||||
*This is in italic, and **this is bold italics**.* But **is this bold and *this bold-italic* **? Or just plain ***bold italics***.
|
||||
*** Output of inspect ***
|
||||
md_el(:document,
|
||||
[md_par([
|
||||
md_em([
|
||||
"This is in italic, and ", md_strong(["this is bold italics"]), "."
|
||||
]), " But ", md_strong([
|
||||
"is this bold and ", md_em(["this bold-italic"])
|
||||
]), "? Or just plain ", md_emstrong(["bold italics"]), "."
|
||||
])
|
||||
],{},[])
|
||||
*** Output of to_html ***
|
||||
<p><em>This is in italic, and <strong>this is bold italics</strong>.</em> But <strong>is this bold and <em>this bold-italic</em></strong>? Or just plain <strong><em>bold italics</em></strong>.</p>
|
||||
*** Output of to_latex ***
|
||||
\emph{This is in italic, and \textbf{this is bold italics}.} But \textbf{is this bold and \emph{this bold-italic}}? Or just plain \textbf{\emph{bold italics}}.
|
||||
*** Output of to_md ***
|
||||
*This is in italic, and **this is bold italics**.*
|
||||
But **is this bold and *this bold-italic* **? Or
|
||||
just plain ***bold italics***.
|
||||
*** Output of to_s ***
|
||||
This is in italic, and this is bold italics. But is this bold and this bold-italic? Or just plain bold italics.
|
|
@ -29,7 +29,7 @@ md_el(:document,[
|
|||
*** Output of to_html ***
|
||||
<ul>
|
||||
<li>
|
||||
a
|
||||
<p>a</p>
|
||||
|
||||
<ul>
|
||||
<li>a1</li>
|
||||
|
|
Loading…
Reference in a new issue