Giter Site home page Giter Site logo

Add /compare about microformats.io HOT 4 OPEN

microformats avatar microformats commented on July 27, 2024 1
Add /compare

from microformats.io.

Comments (4)

sknebel avatar sknebel commented on July 27, 2024

@Zegnat and I especially would like a version with a html-entry-box, not just a URL field. I'm not sure what would be the best way to implement it, but would try to help if I can. (I'd like to have this locally, but throwing all of it in a giant vagrant box afterwards should be doable. Being made for deployment on heroku at least keeps state away)

Since the parsers are running on subdomains (and different dynos I assume?), maybe adding an endpoint that returns pure JSON to each of them and fetch them from the browser would be a possible solution?

from microformats.io.

Zegnat avatar Zegnat commented on July 27, 2024

A good example of aggregating multiple parsers (IMHO) is MacFarlane’s Babelmark 2 for Markdown.

The way it communicates with different parsers is documented in its FAQ:

How can I add my markdown implementation to Babelmark 2?

Write a server app or CGI script that accepts accepts GET queries, takes the text out of the text parameter, and returns a javascript object with the following fields: name (the name of the markdown processor), version (the version being run), and html (the result of converting the text to HTML).

Example:

$ curl 'http://johnmacfarlane.net/cgi-bin/pandoc-dingus?text=hi'
{"name":"Pandoc","html":"<p>hi</p>","version":"1.9.4.2"}

The script can, if desired, return an error if the input text exceeds 1000 characters.

from microformats.io.

veganstraightedge avatar veganstraightedge commented on July 27, 2024

@sknebel @Zegnat I'm open to pull requests.

from microformats.io.

willnorris avatar willnorris commented on July 27, 2024

Come up with a protocol and I'll gladly update the Go parser.

Curious that Babelmark uses GET instead of POST... isn't the latter just as simple when doing XHR? Some other reason to use GET that I'm not thinking of?

from microformats.io.

Related Issues (20)

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.