dokufreaks / plugin-blogtng

http://dokuwiki.org/plugin:blogtng
GNU General Public License v2.0
36 stars 18 forks source link

tags in abstract line with <blog list> #127

Open kp-org opened 6 years ago

kp-org commented 6 years ago

The 'abstract' 'line doesn't parse all tags added by (syntax) plugins correctly. Example bbcode plugin:

[m]something[/m] was written .... --> doesn't work (tags will be displayed) ''something" was written ... --> is parsed correctly, the "abstract" line doesn't show tags

Unfortunately bbcode's [color] tag is removed correct, so it seems that not all tags are effected. Additional entries in entities.(local.)conf will not be parsed and removed.

Happens with actual Greebo and .

Klap-in commented 1 year ago

the abstract is about 250 characters. It is stored using the metadata render, not xhtml renderer. Plugins should just use (indirectly) the $renderer->cdata() method for the text. https://github.com/splitbrain/dokuwiki/blob/master/inc/parser/metadata.php

Not yet looked in detail, but I guess this would something that can be improved from the bbcode plugin.

kp-org commented 1 year ago

This is not limited to one or more plugins. Even entities will not be parsed correctly, as mentioned above at least user defined entities. I think it would be ok then the (syntax) tags will be removed in the abstract line without being rendered. However, I don't know the details in the code.

The abstract line also starts with the first header line, which is duplicate to the listed blog entry header. Maybe these belongs to the parsing issue.