instance method
code_span_separator
Ruby on Rails edge
Since edge Private — implementation detail, not part of the public APISignature
code_span_separator(left, right)
When two code spans are adjacent, CommonMark reads their touching delimiters as one longer backtick string that closes neither span, and then parses the code text, which #markdown_for_node emits unescaped, as Markdown.
Parameters
-
leftreq -
rightreq
Source
# File actiontext/lib/action_text/markdown_conversion.rb, line 377
def code_span_separator(left, right)
left.end_with?("`") && right.start_with?("`") ? " " : ""
end
Defined in actiontext/lib/action_text/markdown_conversion.rb line 377
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::MarkdownConversion