You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using patch_content with any operation (append, prepend, or replace) to modify a heading section, it doesn't add necessary line breaks, which breaks the Markdown structure.
The function should automatically handle line breaks to preserve Markdown formatting for all operations.
The text was updated successfully, but these errors were encountered:
7shi
changed the title
patch_content breaks Markdown structure when appending content to headingspatch_content breaks Markdown structure when modifying heading sections
Dec 2, 2024
While testing mcp-obsidian, some users suggested that direct access to the Vault via the MCP filesystem server would be sufficient, eliminating the need for a specialized solution. I thought the main advantage of mcp-obsidian might be limited to specific functionalities like partial page modifications (e.g., appending content to specific headings).
However, this patch_content has been unstable due to issues with both the REST API and MCP, as evidenced by my previous PRs.
When using
patch_content
with any operation (append
,prepend
, orreplace
) to modify a heading section, it doesn't add necessary line breaks, which breaks the Markdown structure.Example:
When applying:
to:
Current output:
# test1 foo baz# test2 bar
Expected output:
The function should automatically handle line breaks to preserve Markdown formatting for all operations.
The text was updated successfully, but these errors were encountered: