char_type c = d->text_[i];
if (c == ' ')
break;
- xs << html::escapeChar(c);
+ xs << c;
}
}
return i;
Layout const & style = *d->layout_;
- if (!fortoc
- && style.toclevel != Layout::NOT_IN_TOC
- && style.toclevel <= buf.params().tocdepth) {
- // we need to generate a magic label for this paragraph
+ if (!fortoc) {
+ // generate a magic label for this paragraph
string const attr = "id='" + magicLabel() + "'";
xs << CompTag("a", attr);
}