How to use the richtypo.lite function in richtypo

To help you get started, we’ve selected a few richtypo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sapegin / sweet / lib / index.js View on Github external
}

			// Typography
			richtypo.lang(dataset.lang);
			dataset.pageTitle = dataset.title;
			if (this.typographer !== false) {
				if (dataset.title)
					dataset.title = richtypo.title(dataset.title);
				if (dataset.content)
					dataset.content = richtypo.rich(dataset.content);
			}

			// Expose typographer to templates
			dataset.t = richtypo.rich;
			dataset.tt = richtypo.title;
			dataset.tl = richtypo.lite;

			// Expose Markdown parser to templates
			dataset.md = marked;
			dataset.mds = markedString;

			this.transform(dataset.template, fileId, dataset, this.saveContentFile.bind(this));
		}
	},
github sapegin / sweet / swe.js View on Github external
}

		// Typography
		richtypo.lang(dataset.lang);
		dataset.pageTitle = dataset.title;
		if (o.typographer !== false) {
			if (dataset.title)
				dataset.title = richtypo.title(dataset.title);
			if (dataset.content)
				dataset.content = richtypo.rich(dataset.content);
		}

		// Expose typographer to templates
		dataset.t = richtypo.rich;
		dataset.tt = richtypo.title;
		dataset.tl = richtypo.lite;

		// Expose Markdown parser to templates
		dataset.md = marked;
		dataset.mds = markedString;

		transform(dataset.template, fileId, dataset, saveContentFile);
	}
}

richtypo

HTML and Markdown typography enhancer with extensible rules

MIT
Latest version published 2 months ago

Package Health Score

71 / 100
Full package analysis