Citation Standard

How to Cite THAI.NEWS

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

Hash Grammar

Append a citation hash to any article URL (https://thai.news/news/{category}/{slug}):

#p-{n} | #q={encodeURIComponent(snippet)} | #p-{n}&q={encodeURIComponent(snippet)} | #:~:text={encoded snippet}
PatternBehavior
#p-{n}Scrolls to paragraph n (1-based) and highlights it in yellow.
#q={encodeURIComponent(snippet)}Finds the first exact match of that snippet (about 20–80 characters is enough) in the rendered article and paints a yellow marker. If the snippet is 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.
#:~: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 into the article with 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://thai.news/citation.json, or retrieve clean Markdown with numbered [¶N] paragraph anchors via GET /api/v1/articles/{category}/{slug}.md.