Commit 6e5a06bc authored by Wataru Noguchi's avatar Wataru Noguchi 🎖

Cleanup CSS for embed.

parent 7a4cde1c
/* Remove inherited style to embed GitLab Snippet */
div.plugin_gitlabsnippet_gitlabsnippetsyntax pre {
border: unset;
box-shadow: unset;
}
div.plugin_gitlabsnippet_gitlabsnippetsyntax code {
background-color: unset;
box-shadow: unset;
}
......@@ -99,7 +99,9 @@ class syntax_plugin_gitlabsnippet_gitlabsnippetsyntax extends DokuWiki_Syntax_Pl
$snippetData = $data[0];
$renderer->doc .= '<div class="plugin_gitlabsnippet_gitlabsnippetsyntax">';
$renderer->doc .= '<script src="' . $snippetData . '"></script>';
$renderer->doc .= '</div>';
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment