[feature request] convert from buffer instead of file #10

Open
opened 2021-04-06 16:42:25 +00:00 by digizeph · 3 comments
digizeph commented 2021-04-06 16:42:25 +00:00 (Migrated from github.com)

Hi @tecosaur Thank you for your efforts on this project!

I'd like to see if it is possible to convert a markdown buffer (not a file) to org. The use case is that sometimes I encountered some markdown content online, I'd like to copy the markdown to a emacs buffer, then convert it to orgmode without saving the markdown file first somewhere.

EDIT: realized that this may be more than just markdown mode. I changed the issue title to reflect that.
EDIT2: I think the potential solution is to save the current file to a temporary location with filename suffix determined by the current major mode, then run the import function, then delete the temporary file.

Hi @tecosaur Thank you for your efforts on this project! I'd like to see if it is possible to convert a markdown buffer (not a file) to org. The use case is that sometimes I encountered some markdown content online, I'd like to copy the markdown to a emacs buffer, then convert it to orgmode without saving the markdown file first somewhere. EDIT: realized that this may be more than just markdown mode. I changed the issue title to reflect that. EDIT2: I think the potential solution is to save the current file to a temporary location with filename suffix determined by the current major mode, then run the import function, then delete the temporary file.
tecosaur commented 2021-04-06 18:19:25 +00:00 (Migrated from github.com)

Hmmm, this seems like a good idea but would require reworking a fair bit.
A PR would be great, otherwise expect to wait a few weeks-months.

( NB: It's not that much work, I'm just rather busy )

Hmmm, this seems like a good idea but would require reworking a fair bit. A PR would be great, otherwise expect to wait a few weeks-months. ( NB: It's not _that_ much work, I'm just rather busy )
stefan2904 commented 2021-10-28 19:16:44 +00:00 (Migrated from github.com)

A regular use case I have is to paste/yank some markdown from my clipboard into an org file, so this sounds useful. 👍

A regular use case I have is to paste/yank some markdown from my clipboard into an org file, so this sounds useful. :+1:
tecosaur commented 2021-10-28 19:41:34 +00:00 (Migrated from github.com)

My thought have no changed, but unfortunately neither has the amount of time I have available 😛, there's a good chance of this happening by the end of the year without a PR though.

My thought have no changed, but unfortunately neither has the amount of time I have available :stuck_out_tongue:, there's a good chance of this happening by the end of the year without a PR though.
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tec/org-pandoc-import#10
No description provided.