maphy-psd/dokuwiki-plugin-date

Pattern "<<.+?>>" causes side effects

Closed this issue · 4 comments

The pattern registration for "<<.+?>>" and its handling causes strange side effects on pages where entity replacement and quotation syntax is used as it behaves quite greedy.
Why register this pattern anyway? It seems not be needed for the plugin.

This pattern is used for the constants. <> gives you today's date.
Maybe I can't change the pattern to {{date>constant}}

Have you an example site or can you describe a situation for your strange side effects?

Take this snippet and see how it renders differently with or without the pattern:

-> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r)
"He thought 'It's a man's world'..."

The same can be done to produce any kind of HTML, it just needs to be added to the [[doku>entities|pattern file]].

There are three exceptions which do not come from that pattern file: multiplication entity (640x480), 'single' and "double quotes". They can be turned off through a [[doku>config:typography|config option]].

===== Quoting =====

Some times you want to mark some text to show it's a reply or comment. You can use the following syntax:

I think we should do it

> No we shouldn't

>> Well, I say we should

> Really?

>> Yes!

>>> Then lets do it!

Ok, i will change the syntax for the constant. I think {{date>constant}} is useful.

fix by 3599cfd - close