[WIP] copy-to-clipboard.js: Enhance commands extraction

  • Strip the # and $ characters from the start of shell commands
  • Add quote-aware comment removal
  • Properly handle line continuations and multi-line commands
  • Multiple overall improvements

Assisted-by: Claude Haiku 4.5 Signed-off-by: Hristo Marinov hricky@mail.bg

Enhances "Copy to Clipboard" with improved extraction that correctly handles root user prompts (#). This is an advancement for documentation that includes privileged commands. Includes several general improvements.

Merge request reports

Loading