Skip to content

Pretty print JSON-LD to HTML, adding hyperlinks to the keys (from the JSON-LD context)

License

Notifications You must be signed in to change notification settings

BigBlueHat/jsonld-markup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonld-markup

Pretty print JSON-LD to HTML, adding hyperlinks to the keys (from the JSON-LD context).

jsonld-markup is adapted from json-markup.

var code = document.querySelector('code');
var data = JSON.parse(code.textContent.trim());
code.innerHTML = jsonldMarkup(data, {'@vocab': "http://schema.org/"})

Note: a context must be specified (this module won't fetch an existing context).

License

Apache 2.0

About

Pretty print JSON-LD to HTML, adding hyperlinks to the keys (from the JSON-LD context)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.4%
  • HTML 20.3%
  • CSS 8.3%