Giter Site home page Giter Site logo

subract / obsidian-ghost-publish Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bramses/obsidian-ghost-publish

0.0 0.0 0.0 86 KB

Write on Obsidian. Publish to Ghost with a single click.

Home Page: https://www.bramadams.dev/

License: MIT License

JavaScript 7.37% TypeScript 92.63%

obsidian-ghost-publish's People

Contributors

bramses avatar jaynguyens avatar robertogongora avatar

obsidian-ghost-publish's Issues

Remove developer-specific customizations

The parent repository added a number of useful features, but also a number of highly user-specific customizations of little general interest. These should be stripped out for a more widely-usable fork, and to keep the scope of the plugin narrow. Specifically, remove:

  • ChatGPT callouts
  • Role name replacement (with hardcoded developer handle)
  • Move image under cursor (better supported by plugins like reorx/obsidian-paste-image-rename, or Obsidian's native renaming function

Add option to delete first header

Right now, the first H1 header is stripped from the note before publishing. That's useful if the H1 header is simply the title of the post, since that's displayed separately in Ghost. However, not everyone puts the title of their note as the first H1 header (especially if using Obsidian's "Show inline title" setting). This should be a configurable option in the settings.

Check if publishing an update using title

If a post doesn't have a slug specified in the metadata, the slugExists check will always return false - meaning a new version of the post will always be created instead of updating an existing one. We should support checking if a post with a slug equivalent to the note's title exists, and update that post instead.

Will this make it too easy to accidentally overwrite an existing post unintentionally?

Add error handling

Error handling is currently minimal in some places and nonexistent in others. Some cases that should be handled off the top of my head:

  • Incorrect API URL (no/bad HTTP response)
  • Incorrect API key

Remove debug statements

There's quite a few console.log() statements - these ought to be removed from production builds. Not sure yet if there's a way to leave them in for development, though...

Improve README

The README lacks documentation on a number of newly-supported metadata key-value pairs. Additionally, it needs a pass for style and consistency.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.