MCPcopy Index your code
hub / github.com/tensorflow/tensorboard / markdown_to_safe_html

Function markdown_to_safe_html

tensorboard/plugin_util.py:109–119  ·  view source on GitHub ↗

Convert Markdown to HTML that's safe to splice into the DOM. Arguments: markdown_string: A Unicode string or UTF-8--encoded bytestring containing Markdown source. Markdown tables are supported. Returns: A string containing safe HTML.

(markdown_string)

Source from the content-addressed store, hash-verified

107
108
109def markdown_to_safe_html(markdown_string):
110 """Convert Markdown to HTML that's safe to splice into the DOM.
111
112 Arguments:
113 markdown_string: A Unicode string or UTF-8--encoded bytestring
114 containing Markdown source. Markdown tables are supported.
115
116 Returns:
117 A string containing safe HTML.
118 """
119 return markdowns_to_safe_html([markdown_string], lambda xs: xs[0])
120
121
122def markdowns_to_safe_html(markdown_strings, combine):

Callers

nothing calls this directly

Calls 1

markdowns_to_safe_htmlFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…