Platform
Resources
Pricing
Sign in
Get started
playground
Workspace
Fork
Public
TOOLS
By
Momo
Edited
Apr 23
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
mutable
input
=
""
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
##
Readability
Insert cell
Insert cell
Insert cell
Insert cell
##
setup
Insert cell
MozillaReadability
=
await
import
(
'https://esm.sh/@mozilla/readability'
)
Insert cell
Readability
=
MozillaReadability
.
Readability
Insert cell
Turndown
=
(
await
import
(
'https://esm.sh/turndown'
)
)
.
default
Insert cell
service
=
new
Turndown
(
{
headingStyle
:
"atx"
}
)
Insert cell
formats
=
[
"auto"
,
"text/html"
,
"text/plain"
,
"text/url"
,
"text/url-list"
,
"text"
]
Insert cell
{
window
.
format
=
format
;
const
f
=
format
==
"auto"
?
"text/html"
:
format
;
const
value
=
window
.
clipboardData
?.
[
f
]
;
if
(
value
)
{
textarea
.
value
=
value
;
textarea
.
dispatchEvent
(
new
Event
(
"input"
)
)
;
}
}
Insert cell
Insert cell
<
div
>
css style
</
div
>
<
style
>
.
fb-404
{
max-width
:
5
em
;
max-height
:
1
em
;
bottom
:
1
em
;
right
:
1
em
;
transition
:
all
0.2
s
;
}
.
fb-404
:
hover
{
max-width
:
12
em
;
max-height
:
8
em
;
}
.
svg-preview
>
svg
{
color
:
#0f766e
;
/* fill: #22d3ee; */
/* stroke-color: #4ade80; */
min-width
:
2
rem
;
min-height
:
2
rem
;
max-width
:
4
rem
;
max-height
:
4
rem
;
}
</
style
>
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
format
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
textarea
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
output
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
input
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
preview
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
svgList
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
readabilityView
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
article
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
MozillaReadability
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Readability
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Turndown
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
service
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
formats
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML