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

Saving mdClipsFolder with {pageTitle} including trailing space silently fails #340

Closed
rickdoesdev opened this issue Aug 22, 2024 · 0 comments

Comments

@rickdoesdev
Copy link

Use case

I use folder notes style obsidian structure and have a folder and file path as follows:

  • pageTitle/
    • pageTitle.md
    • attachments/
      • someImage.jpg
      • someOtherImage.jpg

Setting up options to enable this, fails when clipping a page that has trailing space in the resultant pageTitle

eg: https://ecoboats.com.au/is-electric-propulsion-suitable-for-my-boat/ results in a pageTitle with extra whitespace that silently dies

OS: Linux x86
Browser: Firefox

Configuration:

{
  "headingStyle": "atx",
  "hr": "___",
  "bulletListMarker": "-",
  "codeBlockStyle": "fenced",
  "fence": "```",
  "emDelimiter": "_",
  "strongDelimiter": "**",
  "linkStyle": "inlined",
  "linkReferenceStyle": "full",
  "imageStyle": "obsidian",
  "imageRefStyle": "inlined",
  "frontmatter": "---\ncreated: {date:YYYY-MM-DDTHH:mm:ss} (UTC {date:Z})\ntags: [{keywords}]\nsource: {baseURI}\nauthor: {byline}\n---\n\n# {pageTitle}\n\n> ## Excerpt\n> {excerpt}\n\n---",
  "backmatter": "",
  "title": "{pageTitle}",
  "includeTemplate": true,
  "saveAs": false,
  "downloadImages": true,
  "imagePrefix": "attachments/",
  "mdClipsFolder": "MarkDownload/{pageTitle}",
  "disallowedChars": "[]#^",
  "downloadMode": "downloadsApi",
  "turndownEscape": true,
  "contextMenus": true,
  "obsidianIntegration": false,
  "obsidianVault": "",
  "obsidianFolder": ""
}
deathau added a commit that referenced this issue Aug 23, 2024
Fix #340 - Whitespace issues while saving
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant