Hi there,
loving hackmd so far - thank for all you hard work!
Three question:
How can I embed one note into another? That would really make composable notes a lot easier e.g. if you have the same "footer" which you want to use in different notes
Is there a "js"-snippet that I could add e.g. in my angular or react project that will render a md file that I might have created with hackmd?
Thanks for your advice.
Hi @VinzentE
<iframe width="100%" height="500" src="https://hackmd.io/features" frameborder="0"></iframe>
Thanks for loving us.
Amazing! Thanks.
Works like a charm - Parser would be fantastic in the future!
Any chance to remove the "header" when embedding? So that the user does not "see" that it actually is a hackmd-note - as it might confuse some non-tech visitor.
Also: I tried scrolling="no" but did't get it to work. Would like to just show the full note, without any second vertical scrollbar (if it is longer then the page, there is already the main scrollbar).
You could add css style tag directly inside note.
Below are example code to prevent scrolling and hide infobar & toc menus in publish note.
<style>
body {
overflow: hidden;
}
body > .ui-infobar, body > .ui-toc, body > .ui-affix-toc {
display: none !important;
}
</style>
Fantastic.
Thanks - I got it to work & works great!
One last thing I just came across - Can somehow programmatically access the pure markdown behind e.g. https://hackmd.io/s/features? E.g. REST Endpoint?
I looked through the variables in the chrome dev tools, but couldn't find the object / array where it is being stored.
We don't have any open API for now.
But you could access the markdown source if you add /download after your note link.
For example: https://hackmd.io/features/download.
Hey @VinzentE, did you read us?
Yes ... sorry.
Thanks for it. This helps me as an intermediate solution. A simple endpoint would be fantastic though ...
Thanks again for all your fantastic and quick support.
For real API, please refer to #11
馃槈
You could add css style tag directly inside note.
Below are example code to prevent scrolling and hide infobar & toc menus in publish note.<style> body { overflow: hidden; } body > .ui-infobar, body > .ui-toc, body > .ui-affix-toc { display: none !important; } </style>
Hi @jackycute I am confused with your solution. Could you explain more details about where to put those CSS codes to?
@lephix Hi, you could just put those code in your note and that will take effect.
I am sorry, you mean doing that like the screenshot following?

@lephix yes!
I tried to embed a note as iframe today. But it doesn't seem to work with a console error:
Refused to display 'https://hackmd.io/some-page' in a frame because it set 'X-Frame-Options' to 'sameorigin'
Is there any workaround or settings for the iframe to work?
Most helpful comment
Hi @VinzentE
Thanks for loving us.