docutils-ts
Version:
Port of the Python Docutils library to TypeScript
26 lines (24 loc) • 807 B
TypeScript
import Transform from '../transform.js';
/**
* Propagate empty internal targets to the next element.
*
* Given the following nodes::
*
* <target ids="internal1" names="internal1">
* <target anonymous="1" ids="id1">
* <target ids="internal2" names="internal2">
* <paragraph>
* This is a test.
*
* PropagateTargets propagates the ids and names of the internal
* targets preceding the paragraph to the paragraph itself::
*
* <target refid="internal1">
* <target anonymous="1" refid="id1">
* <target refid="internal2">
* <paragraph ids="internal2 id1 internal1" names="internal2 internal1">
* This is a test.
*/
export declare class PropagateTargets extends Transform {
apply(): void;
}