MCPcopy Create free account
hub / github.com/Kitware/VTK / extract_image_links

Function extract_image_links

Documentation/docs/vtk_documentation.py:292–295  ·  view source on GitHub ↗

Extract image links of the form ![](../imgs/X.Y/filename.png) from markdown content.

(content)

Source from the content-addressed store, hash-verified

290
291
292def extract_image_links(content):
293 """Extract image links of the form ![](../imgs/X.Y/filename.png) from markdown content.
294 """
295 return re.findall(r'!\[.*?\]\(\.\./imgs/([\d.]+)/([^)]+)\)', content)
296
297
298def create_release_index(basedir):

Callers 1

create_release_indexFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected