Citation Standard

How to Cite Ask Thailand

The question URL plus a hash is the highlight API — no extra request required. Link directly to a numbered paragraph, an exact quoted snippet, a specific community reply, or both.

Hash Grammar

Append a citation hash to any question URL (https://asq.in.th/question/{slug}):

#p-{n} | #q={encodeURIComponent(snippet)} | #p-{n}&q={encodeURIComponent(snippet)} | #c-{id} | #c-{id}&q={encodeURIComponent(snippet)} | #:~:text={encoded snippet}
PatternBehavior
#p-{n}Scrolls to paragraph n (1-based across the question body and answer summary) and highlights it in yellow.
#q={encodeURIComponent(snippet)}Finds the first exact match of a unique 20–80 character snippet in the rendered thread and paints a yellow marker. If missing, nothing else is highlighted.
#p-{n}&q={encodeURIComponent(snippet)}Highlights the quote inside paragraph n when found; otherwise falls back to highlighting paragraph n.
#c-{id}Permanent link to a specific community or Facebook reply (alias: #comment-{id}).
#c-{id}&q={encodeURIComponent(snippet)}Highlights the quoted passage strictly inside reply {id}. Never searches the rest of the page; falls back to highlighting that reply.
#:~:text={encoded snippet}W3C Text Fragment syntax is also accepted (including combined #p-{n}:~:text=…). Prefer #q= as the durable form, since browsers strip #:~:text= from location.hash.

Live Examples

Click any example below to jump straight to the cited passage highlighted in yellow:

Machine-Readable Specification

AI assistants and tooling can fetch the complete citation grammar, examples, and prompt summary from https://asq.in.th/citation.json, or retrieve clean Markdown with numbered [¶N] paragraph anchors via GET /api/v1/questions/{slug}.md (or by sending Accept: text/markdown to /question/{slug}).