A headline containing only the '0' digit is not displayed. I put an example in the playground.
Thanks for the clear example.
https://www.dokuwiki.org/playground:bug1770
I guess somewhere is checked if we have an empty value.
https://github.com/splitbrain/dokuwiki/blob/master/inc/parser/xhtml.php#L1691
If $heading is '0', it is skipped, and $default is returned instead.
if(useHeading($linktype) && $id) {
$heading = p_get_first_heading($id);
if($heading) {
return $this->_xmlEntities($heading);
}
}
return $this->_xmlEntities($default);
Hmm this is for titles of the urls.
This is the check for headers, same logic:
https://github.com/splitbrain/dokuwiki/blob/master/inc/parser/xhtml.php#L194
if(!$text) return; //skip empty headlines
So we should use blank() in these cases?