I want to run inputRules within a code block. Is this not possible? It seems that prosemirror explicitly shortcuts the inputRules code when it’s within a spec marked as code…
for more context, line 94 of the run() function of index.js of prosemirror-inputrules short circuits for spec’s labeled as code. Everything works fine for me if I get rid of this line. Unless there’s some other workaround, can another flag be added to the spec explicitly enabling inputRules for code?
How do we feel about this applying to code marks as well? Typing inside of a code mark it doesn’t make sense for any of the predefined rules to apply such as emdash, smart quotes etc…
Probably the right thing, I think the chosen API on this PR does make it possible though – you could have an additional value for inCode that would be non-breaking, such as “never”, “none”