Coder Social home page Coder Social logo

valentine's Introduction

valentine

valentine is a statically linked binary that validates your HTML against the offical W3C HTML spec. Syntax is checked, but only some of the semantic properties. In case of error, valentine gives you the file name, line number, column number, offending text, and issue.

Install it with opam, the OCaml package manager, with

$ opam install valentine

If there is an error then valentine will exit with exit code 1 making it very easy use in your shell scripts.

Example output

$ valentine ex/test.html
File:test.html line 4, column 1: misnested tag: 'body' in 'body'
File:test.html line 4, column 10: unmatched start tag 'em'
File:test.html line 5, column 14: bad token '>' in tag: expected attribute value after '='
File:test.html line 4, column 10: unmatched start tag 'em'

Acknowledgements

Thank you to @aantron for making Markup.ml, we were sorely needing it.

valentine's People

Contributors

fxfactorial avatar aantron avatar zapashcanon avatar

Stargazers

Bikal Lem avatar Edgar Khanzadian avatar Ashish Agarwal avatar Glenn Y. Rolland avatar Danny Willems avatar Anil Madhavapeddy avatar Marcello Seri avatar Rizo I avatar David Sheets avatar yomimono avatar Stas avatar dai avatar Thomas Gazagnaire avatar Keiji Matsuzaki avatar Jochen Bartl avatar  avatar  avatar Seb Mondet avatar

Watchers

Thomas Gazagnaire avatar Ashish Agarwal avatar  avatar  avatar  avatar

Forkers

zapashcanon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.