plugin:fontsize
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:fontsize [2020-06-24 21:44] – [Discussion] Capbat | plugin:fontsize [2024-12-23 03:57] (current) – [Discussion] 2601:85:c500:29ef:e981:1354:fb21:698 | ||
---|---|---|---|
Line 7: | Line 7: | ||
type : syntax | type : syntax | ||
lastupdate : 2008-04-25 | lastupdate : 2008-04-25 | ||
- | compatible : >= 2005-07-01 | + | compatible : !Hogfather |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : style, typography | + | tags : |
- | downloadurl: | + | downloadurl: |
bugtracker : | bugtracker : | ||
sourcerepo : | sourcerepo : | ||
Line 47: | Line 47: | ||
* @author | * @author | ||
*/ | */ | ||
- | |||
- | if(!defined(' | ||
- | if(!defined(' | ||
- | require_once(DOKU_PLUGIN.' | ||
class syntax_plugin_fontsize extends DokuWiki_Syntax_Plugin { | class syntax_plugin_fontsize extends DokuWiki_Syntax_Plugin { | ||
Line 78: | Line 74: | ||
} | } | ||
- | function handle($match, | + | function handle($match, |
switch ($state) { | switch ($state) { | ||
case DOKU_LEXER_ENTER: | case DOKU_LEXER_ENTER: | ||
Line 92: | Line 88: | ||
} | } | ||
- | function render($mode, | + | function render($mode, |
if ($mode == ' | if ($mode == ' | ||
list($state, | list($state, | ||
Line 179: | Line 175: | ||
---- | ---- | ||
+ | 25/09/2020 08:05 | ||
+ | I fixed this plugin for usage with HogFather, shown below: | ||
+ | <file php fontsize-hogfather.patch> | ||
+ | +++ syntax.php | ||
+ | @@ -36,7 +36,7 @@ | ||
+ | | ||
+ | } | ||
+ | |||
+ | - | ||
+ | + | ||
+ | switch ($state) { | ||
+ | case DOKU_LEXER_ENTER: | ||
+ | if ($match{1} == '#' | ||
+ | @@ -50,7 +50,7 @@ | ||
+ | return array(); | ||
+ | } | ||
+ | |||
+ | - | ||
+ | + | ||
+ | if ($mode == ' | ||
+ | list($state, | ||
+ | switch ($state) { | ||
+ | </ | ||
+ | Apply using the following command: \\ '' | ||
+ | |||
+ | ---- | ||
+ | 2024-12-23 | ||
+ | |||
+ | This plugin does not work with " |
plugin/fontsize.1593027880.txt.gz · Last modified: by Capbat