Ignoring formatting for a pattern

Is there a way to ignore formatting for a pattern? Say, I want to ignore formatting when the compile encounters ———–

Create a style for it and apply this style to it. The Compiler treats that “as is” by default.

What format are you compiling to? (PDF, HTML, etc.)