isCodeBlock property

bool get isCodeBlock

Ensure to detect pre,code html tags

Implementation

bool get isCodeBlock => localName == 'pre' || localName == 'code';