How to use the richtypo.full 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 / richtypo.js / example / example.js View on Github external
const richtypo = require("richtypo");

// eslint-disable-next-line no-console
const print = t => console.log(t.replace(/\xa0/g, " ")); // Make non-breaking spaces visible

richtypo.lang("en");

print(
  richtypo.rich(
    "Welcome to the world of beautiful web typography — only with Richtypo."
  )
);
print(richtypo.title("Beautiful & Awesome Web Typography with “Richtypo”"));
print(
  richtypo.full('Use "Richtypo" - make typography on your site beautiful.')
);
github sapegin / richtypo.js / example.js View on Github external
const richtypo = require('richtypo');

// eslint-disable-next-line no-console
const print = t => console.log(t.replace(/\xa0/g, ' ')); // Make non-breaking spaces visible

richtypo.lang('en');

print(
	richtypo.rich(
		'Welcome to the world of beautiful web typography — only with Richtypo.'
	)
);
print(richtypo.title('Beautiful & Awesome Web Typography with “Richtypo”'));
print(
	richtypo.full('Use "Richtypo" - make typography on your site beautiful.')
);

richtypo

HTML and Markdown typography enhancer with extensible rules

MIT
Latest version published 2 months ago

Package Health Score

71 / 100
Full package analysis