You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 20:56:29 UTC

[GitHub] [beam] damccorm opened a new issue, #21030: Language tabs break if highlight shortcodes are not adjacent.

damccorm opened a new issue, #21030:
URL: https://github.com/apache/beam/issues/21030

   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.
   
    
   
    
   
   Imported from Jira [BEAM-12688](https://issues.apache.org/jira/browse/BEAM-12688). Original Jira may contain additional context.
   Reported by: pcoet.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org