Skip to content

Commit ae38777

Browse files
malbertsclaude
andauthored
Correct the documented cypher_raw output wrapper (#1075)
The cypher_raw notes said the output is wrapped in `<pre><code class="json">`, but the code emits `<div class="mw-neowiki-cypher-result"><pre>` with no `code` element, so CSS targeting the documented wrapper matches nothing. Document the actual wrapper, phrased like the sparql_raw section, which already documents its wrapper correctly. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 1aa1620 commit ae38777

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/authoring/parser-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ custom result formatting in templates.
150150
- Errors (rejected queries, syntax errors, the database being unavailable, etc.) render as a
151151
styled error message in place of the result.
152152
- Output is HTML-escaped, so query results containing `<`, `>`, `&`, etc. display safely.
153-
- The output is wrapped in `<pre><code class="json">` and the error message in
153+
- The output is wrapped in `<div class="mw-neowiki-cypher-result"><pre>` and the error message in
154154
`<div class="error">`, so you can target either with CSS.
155155

156156
### Examples

0 commit comments

Comments
 (0)