-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow posting new note with content #673
Conversation
Interesting! Can you give an example on when you use this? And perhaps an example of how you use it? |
We would like to use hackmd for filling protocols of regular meetings. Using this, we preseed the per-meeting note with a protocol template and publish it to the participants. We're planing to do this with an IRC bot, but it is a hacky shell script right now. It basicly does something like this:
|
Nice work! Could you please sign-off the commit? https://github.com/hackmdio/hackmd/blob/master/CONTRIBUTING.md#sign-your-work |
Signed-off-by: Dustin Frisch <fooker@lab.sh>
Sure. Updated... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Locally tested. Works fine when using:
curl -XPOST -H 'Content-Type: text/markdown' --data-binary "@public/docs/features.md" http://localhost:3000/new
Needs some docs on the Features page. Thanks for your contribution! 👍 |
Hi is it possible to use this on hackmd.io ? I tried curl -v -XPOST -H 'Content-Type: text/markdown' 'https://hackmd.io/new' -d test123 and got back <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /new</pre>
</body>
</html> |
@rmst No, this was after the split between HackMD EE/HackMD.io and CodiMD (former HackMD CE), so it never got there. |
Oh right, I've made that mistake before.. github.com/hackmdio just looks soo much like it belongs to hackmd.io. I found both are stunningly similar. The only functional differences I've noted so far are:
|
We have actually nothing to do with https://notes.ethereum.org/ besides the fact that they happen to run an instance of CodiMD CodiMD has no official hosted instance. There is https://hackmd-ce.herokuapp.com which is our test/demo instance which runs the latest master. We recommend to self-host your instance if you want to use CodiMD. We also have an upcoming community call on sunday, if you want to meet some community members (see #911). About the HackMD vs CodiMD story: Please check #720 and the "TL;DR" in our readme: https://github.com/hackmdio/codimd#hackmd-ce-became-codimd Additionally, since this is actually out of scope of this PR, please consider to ask your questions in our Matrix channel: https://matrix.to/#/#codimd:matrix.org |
Oh interesting! Thanks for giving me all that info despite this being so off topic! |
Fwiw, seems to not work on notes.ethereum.org anymore 🤷♂️ |
@patcon seems like they setup a SaaS instance by the HackMD team. This doesn't support this feature. |
This allows to specify initial content while creating a new note.