npf2html
Version:
Converts Tumblr's Neue Post Format to plain HTML
26 lines (25 loc) • 711 B
TypeScript
import { BlogAttribution } from './attribution';
import { Renderer } from './renderer';
/**
* Content blocks that are part of an ask.
*
* @see https://www.tumblr.com/docs/npf#layout-block-type-ask
*
* @category Layout
*/
export interface AskLayout {
type: 'ask';
/** An array of block indices that are a part of the ask content of the Post. */
blocks: number[];
/**
* If the ask is not anonymous, this will include information about the blog
* that submitted the ask.
*/
attribution?: BlogAttribution;
}
/**
* Wraps {@link html} as an ask.
*
* @category Layout
*/
export declare function renderAskLayout(renderer: Renderer, layout: AskLayout, html: string): string;