synchrony / data-public

The 'public' subset of an experimental collaborative knowledge base
2 stars 4 forks source link

Rendering branches to markdown #1

Open JeffreyBenjaminBrown opened 7 years ago

JeffreyBenjaminBrown commented 7 years ago

In data-public, at :36N9Z665xER3ofa0: (a child of "evang mindmap+"), I am keeping a list of arguments (smsn: powerful, smsn ~ cosmic, smsn ~ rebel, ..) for smsn. I intend to turn those into documentation, probably similar to

  + :2BMkwxjsw8KXGwOD: Document: What it is, how it works
  + :aZlmbrxeHZBUJc9S: Document: Some critical shortcuts

The way I'm rendering those to markdown currently is to unfold the text completely, then run

sed 's/^ *. \:[a-zA-Z0-9]\{16\}\: /\n/' input.txt > output.txt

I noticed that you made "knowledge graph" a descendant of one of those; I'll have to delete it when I render.

Do you already render markdown from the (unlabeled-edges portion of the) graph? What do you do?

JeffreyBenjaminBrown commented 7 years ago

If no bewtter solution is extant or soon forthcoming, I think a decent hack for now would be to prepend a special character to each note that should be included in the rendered document, and sed the rest away.

joshsh commented 7 years ago

Have you checked in atom 36N9Z665xER3ofa0? It's not in my graph, which I cycled this morning. I see the other two, which do look rather document-like.

We need a Markdown writer at the Java level.

joshsh commented 7 years ago

That's essentially what I do with LaTeX.

On Sat, Apr 22, 2017 at 1:08 AM, Jeffrey Benjamin Brown < notifications@github.com> wrote:

If no bewtter solution is soon forthcoming, I think a decent hack for now would be to prepend a special character to each note that should be included in the rendered document, and sed the rest away.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/synchrony/data-public/issues/1#issuecomment-296356554, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFpBJ12wbBiKqlKbvTbpz8KlP3Addmwks5rybVmgaJpZM4NFAvD .