@nagwa-limited/kashida-engine
Version:
An engine to unify array of Arabic strings to the same width using Kashidas
13 lines (12 loc) • 505 B
TypeScript
/**
* Extracts the poems from DOM, expecting any HTML element with the `poem` class like the following structure.
* ``` HTML
* <element class="poem">
* [Poem should exist here]
* </element>
* ```
* @param { String } [poemSelector =".poem"] The CSS selector used to extract the poems. Default value: `.poem`.
* @returns { HTMLElement[] } The elements containing the poems.
*/
export declare const extractPoemsFromDOM: (poemSelector?: string) => HTMLElement[];
export default extractPoemsFromDOM;