You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Kenneth Knowles (Jira)" <ji...@apache.org> on 2022/01/14 19:59:00 UTC
[jira] [Updated] (BEAM-12688) Language tabs break if highlight shortcodes are not adjacent.
[ https://issues.apache.org/jira/browse/BEAM-12688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kenneth Knowles updated BEAM-12688:
-----------------------------------
Status: Open (was: Triage Needed)
> Language tabs break if highlight shortcodes are not adjacent.
> -------------------------------------------------------------
>
> Key: BEAM-12688
> URL: https://issues.apache.org/jira/browse/BEAM-12688
> Project: Beam
> Issue Type: Bug
> Components: website
> Reporter: David Huntsperger
> Priority: P3
>
> 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.
>
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)