bridgetownrb/bridgetown-slim

HTML inside `link_to` being output as text

Opened this issue · 0 comments

HTML tags inside a link_to content block are being output as text. See example below:

/ src/_components/menu_link.slim

= link_to @path, @options do
  - if @text
    = slotted :icon
    span
      = @text
    - if @selectable
      = render Icon.new('checkmark', class: @checkmark_classes)
  - else
    = content
/ src/partials/_nav.slim

= render MenuLink.new('Menu link 1', '/')
= render MenuLink.new('Menu link 3', '/', selectable: true, selected: true)
CleanShot 2023-08-15 at 15 49 25