Skip to content

Commit

Permalink
Inserts into syntax.php::getAllowedTypes a reformulated $PARSER_MODES…
Browse files Browse the repository at this point in the history
…['formatting'] which removes both 'monospaced'

and 'emphasis', the latter of which corrupts dokuwiki's url formatting
  • Loading branch information
turnermm committed Dec 22, 2021
1 parent 9ed6e86 commit 75c08ee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.info.txt
@@ -1,7 +1,7 @@
base skipentity
author Myron Turner
email turnermm02@shaw.ca
date 2019-08-11
date 2021-12-22
name skipentity
desc creates monospaced text without converting entities
url http://www.dokuwiki.org/plugin:skipentity
2 changes: 2 additions & 0 deletions syntax.php
Expand Up @@ -10,6 +10,8 @@ class syntax_plugin_skipentity extends DokuWiki_Syntax_Plugin {

function getType(){ return 'formatting'; }
function getAllowedTypes() {
global $PARSER_MODES;
$PARSER_MODES['formatting'] = array('strong','underline','subscript', 'superscript', 'deleted', 'footnote');
if($this->getConf('allow_formats')) {
return array('formatting');
}
Expand Down
2 changes: 2 additions & 0 deletions version
@@ -0,0 +1,2 @@
parser_modes_formatting_21-Dec_22-16_59

0 comments on commit 75c08ee

Please sign in to comment.