mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: only render extra content on richmedia class (#743)
This commit is contained in:
1 parent
1b8f209429
commit
48e8c7b3fd
16 files changed
+21
-21
No files matched your search
@@ -17,7 +17,7 @@ const highlighterPage = new AutoloadPage('highlighterPage', () => {
|
||||
$container.find('pre code').get().forEach((code) => {
|
||||
const $code = $(code);
|
||||
const $root = $code.parent().parent();
|
||||
const $typo = $code.closest('.typo');
|
||||
const $typo = $code.closest('.richmedia');
|
||||
const language = ($(code).attr('class') || '').trim();
|
||||
const m = language.match(/language-input([0-9]+)/);
|
||||
if (m?.[1]) {
|
||||
|
||||
Reference in new issue
Block a user