From 6e85aec64563f1bf7adc03f7b58448ac1331d283 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Tue, 29 Mar 2022 18:19:17 +0200 Subject: [PATCH] move tests into ## Regression tests --- docs/src/script.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/src/script.md b/docs/src/script.md index 8389d89..90b63f1 100644 --- a/docs/src/script.md +++ b/docs/src/script.md @@ -149,24 +149,6 @@ this function on datatypes which require further translation. This method is how we provide support for datatypes in `Base` without committing type piracy by implementing `show` for `"text/javascript"`. -### IO Context - -Any [IO context properties](https://docs.julialang.org/en/v1/base/io-network/#Base.IOContext-Tuple{IO,%20Pair}) of the renderer can be used, as expected: - - struct Hello end - - function Base.show(io::IO, ::MIME"text/javascript", ::Hello) - print(io, get(io, :hello, "oops")) - end - - h = @htl("""""") - - repr( - MIME"text/html"(), h; - context=(:hello => "world") - ) - #-> "" - ## Edge Cases Within a `