Hyper-literate programming is to literate programming exactly what hypertext documents are to regular books and texts.
![]() Scribble used to support a custom style for optional brackets.
In particular, the optional brackets will be given the `'paren-shape`
of value `#\?`[1], and the CSS class `opt-color` will be tagged
to these brackets.
Later, Scribble supports the curry notation. Its implementation
no longer uses `'paren-shape` to indicate optional brackets.
Unfortunately, it accidentally dropped the `opt-color` tagging[2].
This PR restores the original behavior by tagging the class
`opt-color` to optional brackets. It also adds `racketoptionalfont`
so that Scribble users can typeset optional brackets.
Lastly, it cleans up the code that supports the `'paren-shape` of value
`#\?`, since it is effectively a deadcode.
Note that this PR does _not_ change any CSS styling, so there's no
visible change. It would make CSS styling customization easier, however.
[1]:
|
||
---|---|---|
scribble | ||
scribble-doc | ||
scribble-html-lib | ||
scribble-lib | ||
scribble-test | ||
scribble-text-lib | ||
.gitignore | ||
LICENSE | ||
README.md |
Scribble
This the source for the Racket packages: "scribble", "scribble-doc", "scribble-html-lib", "scribble-lib", "scribble-test", "scribble-text-lib".
Contributing
Contribute to Racket by submitting a pull request, reporting an issue, joining the development mailing list, or visiting the IRC or Slack channels.
License
Racket, including these packages, is free software, see LICENSE for more details.
By making a contribution, you are agreeing that your contribution is licensed under the Apache 2.0 license and the MIT license.