instance method visit_a

Ruby on Rails edge

Since edge Private — implementation detail, not part of the public API

Signature

visit_a(node, child_values)

No documentation comment.

Parameters

node req
child_values req
Source
# File actiontext/lib/action_text/markdown_conversion.rb, line 222
      def visit_a(node, child_values)
        inner = join_children(child_values)
        if (href = node["href"]) && Rails::HTML::Sanitizer.allowed_uri?(href)
          "[#{flatten_to_inline(inner)}](#{encode_href(href)})"
        else
          inner
        end
      end

Defined in actiontext/lib/action_text/markdown_conversion.rb line 222 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionText::MarkdownConversion

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close