Skip to content

fix(docs): resolve Pygments console lexer error in LM Studio tutorial#402

Merged
pimlock merged 1 commit intomainfrom
fix/docs-lmstudio-console-lexer
Mar 17, 2026
Merged

fix(docs): resolve Pygments console lexer error in LM Studio tutorial#402
pimlock merged 1 commit intomainfrom
fix/docs-lmstudio-console-lexer

Conversation

@pimlock
Copy link
Collaborator

@pimlock pimlock commented Mar 17, 2026

Summary

  • Fix Sphinx build warning caused by the Pygments console lexer failing to tokenize single-quoted JSON arguments in multi-line curl commands
  • Switch Step 5 verification code blocks from console to bash lexer, which handles shell quoting correctly
  • Standardize earlier simple command blocks to use console with $ prompts, and replace -H/-d curl flags with --json

Related Issue

N/A — spotted from Sphinx build warning output.

Changes

  • docs/tutorials/local-inference-lmstudio.md: Lexer and curl flag fixes

Testing

  • Sphinx build no longer emits the lexer warning for this file

The console lexer cannot tokenize single-quoted JSON arguments in
multi-line shell commands. Switch the Step 5 code blocks to the bash
lexer which handles quoting correctly. Also standardize earlier blocks
to use the console lexer with $ prompts for simple commands, and
replace -H/-d curl flags with --json for consistency.
@pimlock pimlock requested a review from a team as a code owner March 17, 2026 17:30
@github-actions
Copy link

github-actions bot commented Mar 17, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-03-17 17:46 UTC

@pimlock pimlock merged commit 00ae3ed into main Mar 17, 2026
11 checks passed
@pimlock pimlock deleted the fix/docs-lmstudio-console-lexer branch March 17, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants