Chapter 39
Edit profile rules and advanced JSON
The rule editor exposes pattern type, line-start requirements, produced role, captures, continuation after Return, delimited-block behavior, layout, inline runs and pairs, captions, and styling roles.
Use literal or structured recognizers whenever they express the syntax. Keep patterns bounded and anchored. Pilcrow rejects known unsafe patterns, but a technically accepted expression can still be too broad or confusing.
Choose Edit Advanced JSON… only when the visual editor does not expose the needed property. Apply validates the JSON and prevents changing the profile identity through that sheet. Keep a valid test sample alongside advanced work.
Inheritance is useful for a small dialect: inherit a stable parent and replace only named syntax. Avoid a long chain that makes behavior hard to explain. If importing a profile reports a conflict, compare names and IDs before replacing anything.