[pmwiki-devel] Attach: with captions

Petko Yotov 5ko at 5ko.fr
Sun Jan 21 08:25:59 PST 2024


Thanks for noticing, in local/Cookbook.php, a custom markup converts:

   lines starting with "Word:"

into:

   <div class="property-Word">...</div>

This is used in the recipeinfo header. When a line started with 
"Attach:" it was also converted to a "property-Attach" block, and the 
line no longer matched the pattern expected by image+caption markup 
rules.

Now fixed ("Attach:" prefix excluded from properties pattern).

Petko

On 20/01/2024 21:38, Simon wrote:
> Any idea why
> Attach:gpxstat-tramp.png|GpxStat tramp output
> 
> does not produce a caption, but
> %%Attach:gpxstat-tramp.png|GpxStat tramp output
> 
> does ?
> 
> (ref PmWiki | PmWiki / Uploads [1])
> 
> e.g. on this page
> PmWiki | Cookbook / GpxStat [2]
> 
> see also
> PmWiki | Test / Attach [3]
> 
> (where it works)



More information about the pmwiki-devel mailing list