Hi there,
I try to embed a YouTube video that contains an underscore to his ID ({{< youtube yia_OqRAlRs >}}) here is the video (https://www.youtube.com/watch?v=yia_OqRAlRs) and I am taking the error:
unrecognized character in shortcode action: U+003C ‘<’. Note: Parameters with non-alphanumeric args must be quoted
I just tried that with the internal Youtube shortcode (just using your {{< youtube yia_OqRAlRs >}} and it works. So there must be something with your setup.
You need to set org-export-with-sub-superscripts to {}. That way a_b will remain as a_b on export; only a_{b} will export to a<sub>b</sub>.
From the Org Manual section (org) Export settings:
‘^:’
Toggle TeX-like syntax for sub- and superscripts. If you write
"^:{}", ‘a_{b}’ will be interpreted, but the simple ‘a_b’ will be
left as it is (‘org-export-with-sub-superscripts’).
So if you choose not to customize org-export-with-sub-superscripts globally (I’d stronger recommend that you do that though ), you can set this per Org file by adding this to the top of the file:
#+OPTIONS: ^:{}
Update: BTW I just updated ox-hugo (check it out if you haven’t yet! ) to require wrapping to-be-sub/superscripted-text in braces.