Git Product home page Git Product logo

obsidian-community-lib's People

Contributors

argenos avatar phibr0 avatar skepticmystic avatar vinzent03 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

obsidian-community-lib's Issues

Rendering to HTML

Hello,

I've written some code to render Markdown to HTML. The goal was to be able to copy a document to clipboard so it can be pasted for instance to gmail.

Another developer approached me to expose the rendering as an API. I'm not very enthusiastic about other plugins depending directly on my plugin, so I was thinking of extracting the functionality into a separate library. I've seen frequent questions about overcoming Obsidian's MarkdownRenderer shortcomings on Discord, and I've seen this implemented in several plugins, so it would probably have some utility to other plugin developers.

I thought that this library would be a good place to include it. I can of course also publish it as a separate library. What do you think ?

The sample plugin doesn't tree shake this library.

If one compiles their Plugin with this Library, using the esbuild (or old rollup config) from the sample Plugin, all provided methods are included, even the ones that aren't used.
I am not sure if this is an Issue of this Library or the sample Plugin configuration, and while the Library is pretty small it's also not that big of a deal, but it might become one in the Future.

Overriding 'obsidian' module isn't valid

@phibr0, when using one of the functions from the lib, I get this error:
image

The App I extended in the community-lib doesn't extend 'obsidians' App when using a 3rd party lib.

I'm not sure what the solution is. Maybe we can just remove the interface? Or maybe keep it in the lib for type-checking purposes, but don't export it? But I was reading, and declare module ... is automatically exported, I don't think we have a choice

Would there be any interest in merging `obsidian-extra` into this project?

Hey there!

A while back, I made a couple of Obsidian libraries for my plugin: obsidian-undocumented, which contains unofficial type definitions for Obsidian's internal API; and obsidian-extra, which provides a bunch of functions using those unofficial definitions.

Would there be any interest in merging obsidian-extra into this project? The projects seem to have a similar goal but are structured slightly differently. Where this project has a single file for all the functions, obsidian-extra has one file per function/feature and tries to separate its exports into safe and unsafe variants.

Here's the project repo.

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.