RunKit + npm: article-json-to-amp

var articleJsonToAmp = require("article-json-to-amp") var articleJson = [ { type: 'paragraph', children: [ { type: 'text', content: 'This is the text and ' }, { type: 'embed', embedType: 'image', src: 'http://example/image.jpg', width: 300, height: 150 }, { type: 'text', bold: true, content: 'some bold text ' }, { type: 'text', href: 'http://example.com', content: 'some link' } ] } ]; console.log(articleJsonToAmp(articleJson));
Created from: https://runkit.com/npm/article-json-to-amp
Loading…

no comments

    sign in to comment