[SyntaxHighlight GeSHi] Use <code> and <pre> instead of <span> and <div> to allow skins to universally style these without requiring local wikis to manually maintain a copy of each skins's <pre> style and apply it to .mw-geshi

* Fixes
-- (bug 19416) GeSHi-generated blocks should use <pre> style for the container
This commit is contained in:
Krinkle 2012-03-06 22:35:40 +00:00
parent b81f422ffc
commit 5dfa1034c1
Notes: Krinkle 2012-03-06 22:35:40 +00:00

View file

@ -108,7 +108,7 @@ class SyntaxHighlight_GeSHi {
$parser->getOutput()->addModuleStyles( 'ext.geshi.local' );
}
$encloseTag = $enclose === GESHI_HEADER_NONE ? 'span' : 'div';
$encloseTag = $enclose === GESHI_HEADER_NONE ? 'code' : 'pre';
$attribs = Sanitizer::validateTagAttributes( $args, $encloseTag );
//lang is valid in HTML context, but also used on GeSHi