I write all my documents in mmd to latex.
For the purpose of inserting code, I used to apply the following replacement:
<>$@<>
The tag $@ used to match all the content between two delimiters <> and <>, thus preserving its format
This works in the mac version, and used to work in previous windows beta versions.
Not anymore, unless both delimiters exist in the same line.
Edit: as long as regex in scrivener is also limited to single lines, I’m really stuck since it renders the app unusable for my purposes