Playground
The playground draws your text with the engine, which your browser runs only for a page from a web server, not one opened from disk. The examples and the guide read fine from disk.
The document as render_ast returns it (D52). Spans are UTF-8 byte offsets into the source (D53).
Diagnostics (parsing)