birv2,
@birv2@pkm.social avatar

Question for some friends: what's the best way to import a long markdown file INTO an already existing org file and have it look like the rest of the org file? Background is that I'm working on building out One Big Org File and want to import my running daily notes from Obsidian into the org file. I've found ways to convert markdown to org, but don't know how to actually place it in the org file. Thanks!

withoutclass,
@withoutclass@mastodon.sdf.org avatar

@birv2 pandoc is the way.

simoninireland,
@simoninireland@mastodon.scot avatar

@birv2 If it's all under one header you can probably copy it with C-c C-x M-w and then paste it into the org file with C-c C-x C-y -- I think that reformats appropriately for the heading level

birv2,
@birv2@pkm.social avatar

@simoninireland Thanks, but it's under date headers. Hmm.

djfiander,
@djfiander@code4lib.social avatar

@birv2 @simoninireland I know that Org has ways to find headings, but I'm not really familiar with that part. If the converted markdown is in a buffer, then you can use insert-buffer (interactive) or insert-buffer-substring (in lisp programs) to insert the buffer holding the new content into the org file at point.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • emacs
  • DreamBathrooms
  • magazineikmin
  • ethstaker
  • khanakhh
  • rosin
  • Youngstown
  • everett
  • slotface
  • ngwrru68w68
  • mdbf
  • GTA5RPClips
  • kavyap
  • thenastyranch
  • cisconetworking
  • JUstTest
  • cubers
  • Leos
  • InstantRegret
  • Durango
  • tacticalgear
  • tester
  • osvaldo12
  • normalnudes
  • anitta
  • modclub
  • megavids
  • provamag3
  • lostlight
  • All magazines