allow the compiler to be None

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
move the header demotion test from markdown to utils

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>