test.rkt
#lang scribble/lp

;; Scribble cannot expand chunks if they occur within dotted cons cells.

@CHUNK[<*>
       (define stupid '<demonstrate-bug>)
       (provide stupid)
       ]

@CHUNK[<demonstrate-bug>
(<doesnt-expand> . rest)
]

@CHUNK[<doesnt-expand>
i-am-stupid
]