next: study block wrapping
parent
87be4123de
commit
11846f022f
@ -1,5 +1,8 @@
|
||||
#lang quadwriter/markdown
|
||||
|
||||
# And
|
||||
text
|
||||
|
||||
so
|
||||
```
|
||||
one
|
||||
two
|
||||
```
|
@ -1,14 +1,42 @@
|
||||
#lang debug racket/base
|
||||
(provide (all-defined-out))
|
||||
(define current-doc (make-parameter #false))
|
||||
(define current-pdf (make-parameter #false))
|
||||
(define current-locale (make-parameter 'us))
|
||||
|
||||
(define draw-debug? (make-parameter #false))
|
||||
(define draw-debug-line? (make-parameter #true))
|
||||
(define draw-debug-block? (make-parameter #true))
|
||||
(define draw-debug-string? (make-parameter #true))
|
||||
|
||||
(define debug-page-width (make-parameter #f))
|
||||
(define debug-page-height (make-parameter #f))
|
||||
(define zoom-factor (make-parameter 1))
|
||||
#lang debug racket
|
||||
(define-for-syntax debug-mode #true)
|
||||
|
||||
(define-syntax (go stx)
|
||||
(syntax-case stx ()
|
||||
[_
|
||||
debug-mode
|
||||
#'(begin
|
||||
(provide (all-defined-out))
|
||||
(define current-doc (make-parameter #false))
|
||||
(define current-pdf (make-parameter #false))
|
||||
(define current-locale (make-parameter 'us))
|
||||
|
||||
(define draw-debug? (make-parameter #t))
|
||||
(define draw-debug-line? (make-parameter #true))
|
||||
(define draw-debug-block? (make-parameter #true))
|
||||
(define draw-debug-string? (make-parameter #true))
|
||||
|
||||
(define debug-page-width (make-parameter 400))
|
||||
(define debug-page-height (make-parameter 400))
|
||||
(define debug-x-margin (make-parameter 40))
|
||||
(define debug-y-margin (make-parameter 40))
|
||||
(define zoom-factor (make-parameter 3)))]
|
||||
[_
|
||||
#'(begin
|
||||
(provide (all-defined-out))
|
||||
(define current-doc (make-parameter #false))
|
||||
(define current-pdf (make-parameter #false))
|
||||
(define current-locale (make-parameter 'us))
|
||||
|
||||
(define draw-debug? (make-parameter #false))
|
||||
(define draw-debug-line? (make-parameter #true))
|
||||
(define draw-debug-block? (make-parameter #true))
|
||||
(define draw-debug-string? (make-parameter #true))
|
||||
|
||||
(define debug-page-width (make-parameter #f))
|
||||
(define debug-page-height (make-parameter #f))
|
||||
(define debug-x-margin (make-parameter #f))
|
||||
(define debug-y-margin (make-parameter 40))
|
||||
(define zoom-factor (make-parameter 1)))]))
|
||||
|
||||
(go)
|
Loading…
Reference in New Issue