@stencila/thema
Version:
Themes for executable documents
11 lines (10 loc) • 359 B
TypeScript
/**
* Translate a custom semantic selector to the equivalent Microdata
* attribute selector.
*
* e.g. :--Article -> [itemtype~='http://schema.org/Article']
* e.g. :--author -> [itemprop~='http://schema.org/author']
*
* This does the inverse of the mapping defined in `./selectors.css`.
*/
export declare function translate(selectors: string): string;