ok
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
@(require
|
@(require
|
||||||
scribble/example
|
scribble/example
|
||||||
scribble/core
|
scribble/core
|
||||||
|
scribble/html-properties
|
||||||
(for-label ;racket
|
(for-label ;racket
|
||||||
;racket/base
|
;racket/base
|
||||||
;racket/string
|
;racket/string
|
||||||
@@ -13,9 +14,16 @@
|
|||||||
;scribble/html/extra
|
;scribble/html/extra
|
||||||
@(for-label ellipsis-msg))
|
@(for-label ellipsis-msg))
|
||||||
|
|
||||||
@(define(exact . items)
|
|
||||||
(make-element (make-style "identity" '(exact-chars))
|
@(define(add-video video)
|
||||||
items))
|
(make-element
|
||||||
|
(make-style #f
|
||||||
|
(list
|
||||||
|
(make-alt-tag "video")
|
||||||
|
(make-attributes (list (cons 'src video)))
|
||||||
|
)
|
||||||
|
)
|
||||||
|
null))
|
||||||
|
|
||||||
@title[#:tag "ellipsis-msg"]{A message% with ellipsis (...) to the left or right}
|
@title[#:tag "ellipsis-msg"]{A message% with ellipsis (...) to the left or right}
|
||||||
|
|
||||||
@@ -59,7 +67,7 @@ See also @racket[message%].
|
|||||||
|
|
||||||
The code underneath produces the following output:
|
The code underneath produces the following output:
|
||||||
|
|
||||||
@exact{(<video src="scribblings/example.mp4"></video>)}
|
@add-video{scribblings/example.mp4}
|
||||||
|
|
||||||
@#reader scribble/comment-reader
|
@#reader scribble/comment-reader
|
||||||
[racketblock
|
[racketblock
|
||||||
|
|||||||
Reference in New Issue
Block a user