MCPcopy Create free account
hub / github.com/TruthHun/BookStack / canConvert

Function canConvert

static/word2md/turndown.js:896–905  ·  view source on GitHub ↗

* Determines whether an input can be converted * @private * @param {String|HTMLElement} input Describe this parameter * @returns Describe what it returns * @type String|Object|Array|Boolean|Number

(input)

Source from the content-addressed store, hash-verified

894 */
895
896function canConvert (input) {
897 return (
898 input != null && (
899 typeof input === 'string' ||
900 (input.nodeType && (
901 input.nodeType === 1 || input.nodeType === 9 || input.nodeType === 11
902 ))
903 )
904 )
905}
906
907return TurndownService;
908

Callers 1

turndown.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected