MCPcopy Create free account
hub / github.com/InkProject/ink / renderHookLazyLoadImage

Function renderHookLazyLoadImage

parse.go:111–135  ·  view source on GitHub ↗

Modify the rendering of the image node to use jQuery-unveil to lazy load images. Note: This is a hacky way to do this, but it works for now. LazyLoadImages in markdown.html.Flags should not be used with this hook, and adding the absolute path prefix to the image destination (which is what the origi

(w io.Writer, node ast.Node, entering bool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected