getgrav / getgrav/grav-plugin-feed

Query about importing into Obsidian from Grav

Open
#73 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
19
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Hi. I don't know if any of you good people might be able to help/advise. Its a bit long, TLDR: Im getting unwanted indents in imported markdown in Obsidian from a Grav blog feed.

So I have an issue with templating posts that are being exported from a Grav blog into Obsidian. Im using your plugin to export and the Obsidian Simple RSS plugin to import. (This plugin is great, I use it for importing other feeds including Mastodon. There is total control for custom feed import and template design according to specified feed fields and items. AFAIK it is the only Obsidian RSS plugin that creates individual files in Obsidian for each post.)

The Grav blog is markdown, and Obsidian is also markdown. Im getting a layout problem for the Grav posts, shown in the screenshot below. For some reason there are multiple level indents for the image html element, and the following paragraph. All other content has no extra indents. The indents are interpreted as 'code' in Obsdn markdown and therefore it breaks the design template layout. See screenshots for edit view and read view - showing that Obsidian markdown interpret this as 'code' in both views. The raw.md file in bsidian vault shows the indents being created at import. The original markdown in Grav has no indents.

Only by manually removing the indents can I make the post behave as normal, ie an image, followed by paragraph of text.

**_Edit view in Obsidian:_**
![screenshot snippet of obsidian file generated from Grav RSS post, in edit view](https://github.com/getgrav/grav-plugin-feed/assets/758626/0e48271e-d2c3-4eb9-9ab2-3935747323bb)

**_Read view in Obsidian:_**
![screenshot snippet of obsidian file generated from Grav RSS post, in read view](https://github.com/getgrav/grav-plugin-feed/assets/758626/3f2ecdf3-5e3f-42cd-86b6-51f7d5abf2b7)

**_The actual markdown imported into Obsidian:_**

![screenshot of markdown in Obsidian](https://github.com/getgrav/grav-plugin-feed/assets/758626/950f3236-1d75-4b35-8153-3a98528720ec)

**_Indents for image and first para in the actual rss_**

![image](https://github.com/getgrav/grav-plugin-feed/assets/758626/ca0d6599-1cc2-4554-a3e1-5f7c96d9fc2a)

I cant see any way of controlling this in the feed twig template or anywhere else. (I also cant control it at the import stage.)

Any ideas are gratefully received.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.