What I usually do in cases like this is start printing stuff out.
Have you tried adding some internal console.log statements outputting vars, they may help shed some light here. I do believe the settings are send down to the markdown engine, your test does look legitimate.