-
Notifications
You must be signed in to change notification settings - Fork 3
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
Tree style blog posts #1
Comments
nice demo! I'm imagining a toggle at the top of the page which changes the render of hte page from seamless inclusion to collapsed expandable inclusions. Can't see this being too hard if you're interested in having a play, you could check the api : note if you currently hit the api with something that's not right it crashes the server D: the MD is all rendred in there, and building the full page is pretty easy, just check out the children for each node and do some sort of injection at the appropriate point in the code. Specifically if there is a child with +<a href=cild_source>...</a> I'm not currently interested in building for offline support - I'm interested in supporting behaviour that leads to more mashing up and sharing of resources. You could use the API and some of the scripts to render one-offs. |
ok the api is more resilient now |
Regarding an offline tool; I thought about this more on my walk home. I had overlooked the updated content element of it. I think I'll start out by just including hypermarkdown as a JavaScript library, but eventually I would like to add graceful degradation to a snapshot from when the site was built (my motivation for this is to appease the NoScript crowd on Hacker News 😛). Also I think your changes broke your actual app (https://hypermarkdown.herokuapp.com/?source=www.github.com/loomio/loomio/blob/master/lineman/README.md). |
Also, I was thinking of potentially making the tool that extends markdown to have inline tree syntax a different thing from hypermarkdown, and then composing them in some way. Mostly for the sake of the unix philosophy. Thoughts? |
uhhh I built some of the solution already .. the jquery isn't in but the classes are all there and ready to collapse them (hmmm ... needs data-attribute to give collapsed this title perhaps) hah, that error was only partly me. the breaking change was that MD file on loomio no longer exists ! |
I think you should roll what you're describing in here. |
Okay cool, I'll build it as part of hmd. I was thinking of something like this for the inline syntax:
What do you think? |
oh I see what you mean. Sorry, I misunderstood May 26th BLOG
Check out this sweet recipe
+[How to bake a cake](link_to cake_recipe.md) cake_recipe.md Baking a cake is simple.
+[Get ingredients](link to ingedients)
+[Mix that shit together](link to combining instructions )
Cook for 50 minutes etc. If you're going the other way then an addition to MD rendering would be good. Sounds like a nice little node package.... mind you it would also need some JS included in clientside anyway for the expand/collapse right ... myeaahh |
Yeah, I think that (including all the sections) would be a bit annoying for my particular purpose. I recognize that inline content is kinda against the point of HMD, but it seems like it would be useful for some more basic use cases. I would like to structure the tree syntax so that it's easy to change a section from inline to included. Regarding including it in the clientside JS, it seems like you're using browserify already, so it would be easy to |
Sweet. Let's keep in touch on this though. I reckon what you're making I also think we both have the same challenge around non-standard md On Tue, 26 May 2015 13:15 Nick Johnstone notifications@github.com wrote:
|
@Widdershin check it : click the 'stitches' option to highlight the joins. |
Following on from a conversation on Friday...
So I had this idea where I wanted to write tree style blog posts, with the idea being that the top level contains simple overviews, and you can drill down into each section for more detail.
I made a little prototype just using jQuery and HTML. https://jsfiddle.net/7oy105ak/1/
After talking to @mixmix, it seems hypermarkdown would benefit from displaying a visual border/indentation from where another document has been included.
From my point of view, I'd like to be able to write a tree style post in a markdown file and display it with hypermarkdown on my blog. It would be cool if I could use hypermarkdown to achieve this.
Some stuff that I see needs to happen to satisfy this:
Nice to have:
The text was updated successfully, but these errors were encountered: