fix inlineExample to use formatCode instead of a full codemirror instance