{
  "comment_anchor_template": "https://asq.in.th/question/{slug}#c-{comment_id}",
  "examples": [
    {
      "note": "Paragraph 4 (Answer Summary) highlight",
      "url": "https://asq.in.th/question/what-options-are-available-for-managing-a-thai-visa-at-an-advanced-age-or-with-health-limitations#p-4"
    },
    {
      "note": "Exact quote highlight: \"hiring agents for visa extensions\"",
      "url": "https://asq.in.th/question/what-options-are-available-for-managing-a-thai-visa-at-an-advanced-age-or-with-health-limitations#q=hiring%20agents%20for%20visa%20extensions"
    },
    {
      "note": "Quote inside paragraph 4, falling back to paragraph 4",
      "url": "https://asq.in.th/question/what-options-are-available-for-managing-a-thai-visa-at-an-advanced-age-or-with-health-limitations#p-4&q=hiring%20agents%20for%20visa%20extensions"
    },
    {
      "note": "W3C text fragment; #q= is the durable form",
      "url": "https://asq.in.th/question/what-options-are-available-for-managing-a-thai-visa-at-an-advanced-age-or-with-health-limitations#:~:text=hiring%20agents%20for%20visa%20extensions"
    }
  ],
  "grammar": "#p-{n} | #q={encodeURIComponent(snippet)} | #p-{n}&q={encodeURIComponent(snippet)} | #c-{id} | #c-{id}&q={encodeURIComponent(snippet)} | #comment-{id} | #comment-{id}&q={encodeURIComponent(snippet)} | #:~:text={encoded snippet}",
  "hash": {
    "combine": "If both a paragraph hash and a quote are present (#p-4&q=... or #p-4:~:text=...), highlight the quote inside that paragraph when found, otherwise highlight the paragraph.",
    "comment": {
      "behavior": "Strictly scoped to that reply's body. Never searches the rest of the page; falls back to highlighting that reply.",
      "permalink": "#c-{id} (alias: #comment-{id})",
      "scoped_quote": "#c-{id}&q={encodeURIComponent(snippet)}"
    },
    "paragraph": {
      "digits": "1-based paragraph number across question body and answer summary",
      "highlights": "paragraph n in yellow",
      "pattern": "#p-{n}"
    },
    "quote": {
      "also": "#:~:text={encoded snippet}",
      "pattern": "#q={encodeURIComponent(snippet)}",
      "prefer": "#q= as the durable form. Browsers strip #:~:text= from location.hash.",
      "snippet": "A short unique prefix, about 20-80 characters. First exact match in the rendered thread. If the snippet is missing, nothing else is highlighted."
    }
  },
  "html": "https://asq.in.th/citation",
  "id": "asq.in.th-question-citation",
  "json": "https://asq.in.th/api/v1/questions/{slug}.json",
  "json_template": "https://asq.in.th/api/v1/questions/{slug}.json",
  "llms_txt": "https://asq.in.th/llms.txt",
  "markdown": "https://asq.in.th/api/v1/questions/{slug}.md",
  "markdown_template": "https://asq.in.th/api/v1/questions/{slug}.md",
  "mcp_docs": "https://asq.in.th/mcp-docs",
  "mcp_endpoint": "https://asq.in.th/mcp",
  "origin": "https://asq.in.th",
  "prompt": "Question & comment citation hashes for Ask Thailand. The URL is the API. No extra request.\nQuestions: https://asq.in.th/question/{slug}\nMarkdown: https://asq.in.th/api/v1/questions/{slug}.md\nJSON: https://asq.in.th/api/v1/questions/{slug}.json\nHash grammar:\n#p-{n} highlights paragraph n (1-based across question body and answer summary) in yellow.\n#q={encodeURIComponent(snippet)} highlights the first exact match of that snippet (about 20-80 characters is enough). If the snippet is missing, do not highlight anything else.\n#p-{n}&q={encodeURIComponent(snippet)} highlights the quote inside paragraph n if found, otherwise highlights paragraph n.\n#c-{id} (or #comment-{id}) links to a specific reply; #c-{id}&q={encodeURIComponent(snippet)} highlights strictly inside that reply.\n#:~:text={encoded snippet} is also accepted. Prefer #q= as the durable form (browsers strip #:~:text= from location.hash).\nExamples: https://asq.in.th/question/what-options-are-available-for-managing-a-thai-visa-at-an-advanced-age-or-with-health-limitations#p-4 ; https://asq.in.th/question/what-options-are-available-for-managing-a-thai-visa-at-an-advanced-age-or-with-health-limitations#q=hiring%20agents%20for%20visa%20extensions ; https://asq.in.th/question/what-options-are-available-for-managing-a-thai-visa-at-an-advanced-age-or-with-health-limitations#p-4&q=hiring%20agents%20for%20visa%20extensions\nThis spec: https://asq.in.th/citation.json",
  "question_url_template": "https://asq.in.th/question/{slug}",
  "questions": "https://asq.in.th/question/{slug}",
  "scope": "How to link any Ask Thailand Q&A thread and highlight a paragraph, quoted snippet, or specific community reply directly via the URL hash.",
  "site": "Ask Thailand",
  "spec": "https://asq.in.th/citation.json",
  "title": "Question & reply citation and highlight hashes"
}