Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-12688

Language tabs break if highlight shortcodes are not adjacent.

Details

    • Bug
    • Status: Open
    • P3
    • Resolution: Unresolved
    • None
    • None
    • website
    • None

    Description

      If adjacent `< highlight >` shortcodes have an extra return between them, it breaks the language switcher tabs. This appears to be happening because the Markdown parser generates empty `<p>` tags for the return. This doesn't happen in all circumstances. It seems to happen if the first shortcode is preceded by a text element and no return. The jQuery in language-switch-v2.js doesn't expect the `<p>` tags, and the CSS probably doesn't either.

      It may be possible to fix this by removing `<p>` tags. We shouldn't touch the Hugo markdown parser or builtin shortcodes.

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            pcoet David Huntsperger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: