Comments (4)
@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.
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.
@sknebel @Zegnat I'm open to pull requests.
from microformats.io.
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)
- Add Twitter/Facebook meta tags
- Add a section explaining why you'd use each mf2 prefix
- Add simple h-entry example
- Example footer copyright info
- Add node.microformats.io
- node.microformats.io down HOT 5
- Document how to deploy the subdomains
- Add dependabot
- Update Bootstrap on parser sites
- Is this basically a static site? HOT 1
- h-card classname should be u-logo HOT 1
- svg logo
- Change shortcut icon
- alt attributes
- rel license is missing
- make site more POSH HOT 1
- Move parser subdomain hosting off of Heroku HOT 5
- Layout Why section into blocks
- Layout What section with icons for types of microformats HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microformats.io.