Skip to content

Commit 5568f4c

Browse files
committed
update image filter
1 parent 3d72aa5 commit 5568f4c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/make_tutorials.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ function add_image_links(nb::Dict, outputfile_base::AbstractString)
255255
append_after = m -> string(m) * suffix
256256
# Literate outputs raw HTML (no ```@raw html```); match <p...>...<img...>...</p>
257257
text = replace(text, r"<p[^>]*>[\s\S]*?<img[\s\S]*?</p>" => append_after)
258+
# Standalone <img> (Literate converts @raw html to plain HTML in notebooks, no wrapper)
259+
text = replace(text, r"<img[^>]*?/?>" => append_after)
258260
# If source still had literal ```@raw html ... ``` in the notebook
259261
text = replace(text, r"```@raw html[\s\S]*?```" => append_after)
260262
# Markdown image ![...](...)

0 commit comments

Comments
 (0)