Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcode broken #45

Open
xf- opened this issue Jun 29, 2021 · 0 comments
Open

Shortcode broken #45

xf- opened this issue Jun 29, 2021 · 0 comments

Comments

@xf-
Copy link

xf- commented Jun 29, 2021

Example (generated by nextgen editor)

[youtube rel="0"]https://www.youtube.com/watch?v=-r65BIu5vtk[/youtube]

The $sc->getContent() is null
https://github.com/getgrav/grav-plugin-youtube/blob/develop/shortcodes/YoutubeShortcode.php#L18

Output
https://www.youtube.com/watch?v=-r65BIu5vtk[/youtube]

  • Switched all 3 parsers in shortcode core and the result stayed the same.
  • Adding Space behind URL or escaping the // to \/\/ results a URL working
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant