Hyper-literate programming is to literate programming exactly what hypertext documents are to regular books and texts.
Go to file
sorawee cbeee2d388
Add racketoptionalfont
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]: 9b7993ea02 (diff-017add06555fc85fa3ae5f27a3eb52cbR253)
[2]: https://github.com/racket/scribble/commit/95ecb101d1cc61d212c4d520#diff-017add06555fc85fa3ae5f27a3eb52cbR879
2020-08-21 09:01:57 -06:00
scribble Relicense this repository under the Apache v2 and MIT licenses. 2019-11-04 12:48:39 -05:00
scribble-doc Add racketoptionalfont 2020-08-21 09:01:57 -06:00
scribble-html-lib Relicense this repository under the Apache v2 and MIT licenses. 2019-11-04 12:48:39 -05:00
scribble-lib Add racketoptionalfont 2020-08-21 09:01:57 -06:00
scribble-test Add test case for #256. 2020-07-20 09:42:05 -04:00
scribble-text-lib Relicense this repository under the Apache v2 and MIT licenses. 2019-11-04 12:48:39 -05:00
.gitignore Add standard .gitignore file. 2014-12-06 17:46:27 -05:00
LICENSE Relicense this repository under the Apache v2 and MIT licenses. 2019-11-04 12:48:39 -05:00
README.md readme: scribble-text-lib -> scribble 2020-06-30 06:58:49 -04:00

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.