Please Use One of These Instead:
Notitia (Latin for Knowledge) is a node module. Notitia converts basic HTML based articles into either AMP (Accelerated Mobile Pages) markup or into Facebook Instant Article Markup. Notitia automates the process of converting plain html code into these two article formats, eliminating the need to create multiple copies of the same article.
- Install using NPM
npm install notitia
- Import to your Project
import * as notitia from 'notitia';
let Not = new Notitia(contents);
let instantArticle = Not.createFBInstantArticle(contents);
//Returns Facebook Instant Article Markup
let Not = new Notitia(contents);
let ampPage = Not.createAMPPage(contents);
//Returns AMP Complient HTML
let Not = new Notitia(contents);
let ampPageBody = Not.createAMPBody(contents);
//Returns AMP Complient HTML (Body Only)
Note: CreateAMPBody Method will only return the body of the AMP HTML Page. This will not pass the AMP Validator. For More info visit AMP's Documentation
Jest is used to run tests on Notitia
npm run test
MIT