Skip to content
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

[Pelican] Importing Pelican article files into Obsidian Notes #269

Open
egberts opened this issue Jun 13, 2024 · 2 comments
Open

[Pelican] Importing Pelican article files into Obsidian Notes #269

egberts opened this issue Jun 13, 2024 · 2 comments
Labels

Comments

@egberts
Copy link

egberts commented Jun 13, 2024

I wish to build a "Import from Pelican" for this wonderful Obsidian Importer (without making a standalone plug-in for this Pelican import)

Pelican too also uses Markdown for all their article files.

But Pelican also had "file properties" embedded at the beginning of each file, typically looking like:

title:  An Example Title
date: 2020-10-13 11:00
modified: 
status: published
tags: example
category: HOWTO
summary: An example file demonstrating file properties already embedded in itself.
slug: pelican-example-file.md
lang: en
private: False

This article details the demonstration of Pelican 
properties having already in beginning of each 
Markdown file with no header/footer markers to 
be (rudderlessly) guided by.

Note: Notice that there are no header/footer demarcations (ie., --- or === or `````).

What aspect of Obsidian Importer is closest to this desired action:

  • Converting file content having [\w\s]:\s*[\w]* into Obsidian file properties
  • Stop adding Obsidian file properties once a blank line has been encountered
  • Importing remaining file content as a 'Note'.
@egberts egberts changed the title Importing Pelican SSG files into Obsidian Notes [Pelican] Importing Pelican article files into Obsidian Notes Jun 13, 2024
@kepano kepano added the formats label Jun 15, 2024
@kepano
Copy link
Collaborator

kepano commented Jun 15, 2024

This is possibly duplicate of #23. I was not familiar with Pelican but since it's a static site generator I think it makes more sense to consider what file format it uses: Markdown with a metadata syntax derived from MultiMarkdown:

Perhaps there could be a MultiMarkdown to Obsidian Flavored Markdown converter/importer. However, I think this kind of conversion is better for a tool like Pandoc which can convert between many Markdown variants.

@egberts
Copy link
Author

egberts commented Jun 20, 2024

Pandoc? I do not see any form of metamarkdown importer in Obsidian:

https://github.com/obsidianmd/obsidian-importer/tree/master/src/formats

Unless you are alluding to some kind of intermediate conversion step going from my Pelican metamarkdown thru Pandoc into what Obsidian-desired format before doing the Obsidian importer?

Remember, there are many useful Pelican metatags that can be imported into Obsidian. So, that incorppration of these metadata would be lost if the intermediate conversion step is straight into a simple Obsidian Markdown file, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants