Giter Site home page Giter Site logo

devbean / obsidian-wordpress Goto Github PK

View Code? Open in Web Editor NEW
155.0 155.0 20.0 38.19 MB

An obsidian plugin for publishing docs to WordPress.

Home Page: https://devbean.github.io/obsidian-wordpress

License: Apache License 2.0

JavaScript 97.03% TypeScript 2.96% CSS 0.01%
obsidian-plugin wordpress

obsidian-wordpress's People

Contributors

brianpetro avatar devbean 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  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  avatar  avatar

obsidian-wordpress's Issues

Refresh post from wp site

It would be great if an edit in WordPress could come back to the Obsidian note. It would require to have a "Refresh" action in Obsidian, so the content is pulled.

This probably would be a more complex feature (translating WordPress data back to Obsidian) – especially if WordPress features like images, custom fields, etc. should be supported.

Reading file content for 'newPost' failed: Error: net::ERR_CERT_AUTHORITY_INVALID

Hello,

I get Error: net::ERR_CERT_AUTHORITY_INVALID, when I try to publish a Page. I know, this is because of an expired SSL certificate on the server, but I have no way of fixing that issue (I'm not the admin there). The WordPress site is only accessible through private IP and completely trusted. Usually you can access sites like these with a few extra clicks from your browser. So I'm wondering if something can be done to bypass this error?

WP plugin giving error "Incorrect User/PW" when trying to Publish

I recently installed the plugin. When testing the Publish function to my WP site, which is hosted on wordpress.com i.e. https://(me).wordpress.com, it gives error msg "Post Publish Failed. 403 : Username or Password incorrect".
I've checked, they are in fact correct.
So I'm wondering if the real issue is how my WP site is hosted.... It's a a sub-domain on wordpress.com. Could this be the problem?

Thanks in advance for help with this.

使用rest api报用户名/密码错误

微信截图_20230702194852
微信截图_20230702194910
你好,我使用xml-rpc可以成功,但是使用REST API Authentication by miniOrange会报用户名/密码错误。不知道这个是什么原因。

Feature Request: Link to WordPress article on confirmation

I would like to be able to have a link from Obsidian that I can click that takes me to the WordPress admin panel and opens up the post in edit mode:

/wp-admin/post.php?post={{post-id}}&action=edit

This will make doing final edits from the WP editor and setting any other metadata quicker and easier.

修改文章后,wordpress可以自动发布么?

非常高兴默认参数发布不需要弹出确认窗口。

在斗胆提一个需求:
能不能根据修改时间,每1个小时扫描自动发布呢?就不需要自己手动发布, 每小时扫描一次有postid的文章,如果修改时间在近一个小时有变更,就自动发布。

当然扫描时间可以自定义, 比如:1小时,24小时,都可以。

类似一些插件的扫描机制:

makediff/obsidian-wucai: WuCai highlights Official, for Sync highlights into your obsidian notes

HeroBlackInk/ultimate-todoist-sync-for-obsidian

401 error with REST API - Invalid username or password

Hi!

Trying to get this plugin working.
WP 6.1.1

Trying to post a note via REST API and receive the following error: "Invalid username or password".

At the server logs I see the following:
[05/Jan/2023:17:11:39 +0300] "GET /wp-json/wp/v2/users?search=username HTTP/1.1" 401 208 "-" "obsidian.md" "blog.kvv213.com"

In the developing console the following:

image

What shall I do in order to make it work? Already tried to re do the application password.

PS. XMLRPC works

Feature Request: support for tags

Would it be possible for the plugin to read metadata like front-matter from an Obsidian MD file and include that as post metadata for things like tags when the note is published?

[new feature request] 图片, 双链,etc

终于有了这种期盼依旧的插件. 感谢!

但还缺少如下必须的功能:

  1. 带图片的文档 publish 后, 图片无法显示.
  2. [[双链]] 无法生成链接
  3. publish 时选择 category, tag 功能
  4. 记录密码

再次感谢.

"\\" in LaTex is not recongnized when publish to wordpress

I have some LaTex like this
$$
\begin{aligned}
6
& = 1 + 2 + 3
\
& = 2 + 4
\
& = 3 + 3
\end{aligned}
$$
where I used \\ to linefeed. It will be converted to \ when publise to WordPress, and this is annoying.

-------------------------------------------------------==--------------------------------------------------

LaTex 中使用 \\ 作为换行符时,发布至 WordPress 会被解析为 \, 公式失效

Auto-detect and translate URLs

When writing a URL in Obsidian, the URL becomes clickable – it seems Obsidian is auto-detecting the URL in a text. Unfortunatly when saving to WordPress the URL becomes inactive.

I hope that this extension would soon keep the URLs clickable on the WordPress side like they are in Obsidian.

JS startWith报错

About Obsidian
Version 1.3.5 (Installer 1.3.5)

image image

某个版本后报错,导致无法使用,看报错大概是xmlRpcPath为空报错,但是我应该没有配置需要这种形式来发布,现在也没有地方可以配置这个path。

如何只使用REST protocol发布?

Posts not publishing via iPad OS Obsidian Mobile App

I set this up with the MiniOrange Plugin. I gathered the application password from where it says in the documentation.

My blog is at https://blog.dudethatserin.com and that is the URL I’m using.
Username is my username to login to the admin panel.

When I press the button, nothing happens. No notification either.

I thought this worked with previous testing on iPad but maybe I was just using it on Desktop.
Does this work on iPad? It let me install and enable it.

[Feature Request] Parse out certain text before publishing

Hi there, great plugin. I have an idea for improving the publishing of text from Obsidian to Wordpress.

As of now, when I publish a note which has filelinks on words, such as [[Filelink]] the text is literally sent to Wordpress as that. I would like to have those [[ ]] brackets removed from the Wordpress post, as they do not serve any purpose there.

Similarly, if I have any formatting text, such as == as a text highlighter, I would like to prevent that text from being sent to Wordpress too.

As a basic implementation, perhaps an toggle option to strip text down to plain text. For an advanced implementation (in the future), I can imagine having text be transformed into HTML. For example, the == could be converted to <span style="background:#xxxxx"> for making it an HTML highlight. It would translate the second == at the end of the highlighted text into a </span> end html code.

This could apply to any other Markdown text formatting as well as Obsidian-Markdown text formatting. These are just examples.

For the sake of time however, as stated above, a feature to simply remove certain characters would be nice. Perhaps this could be implemented as a text box in the plugin settings in Obsidian, which allows the user to enter symbol(s) on each new line which the plugin will first remove before sending to Wordpress.

What do you think?

能否将[[]]内链解析为外部链接?

使用了wordpress插件发布到博客,在yaml区域有的postId, 如果文章中有内链[[]],能否获得内部链接的yaml区域的postId组装成一个地址
比如自己的yaml区域,增加了一个新的字段:source, 这个就是目标地址。能否为这个链接变为这个链接。请大神帮忙评估。

---
source: 'https://www.weqoocu.com/10990.html'
postId: '10990'
---

REST API方式教程应该提示大家看下 miniorange那个插件设置好后Test Configuration这一栏的api网址

image

我试了好久,死活登陆不上去,最后配合fiddler抓包看请求的网址,才发现问题。
我的api是”我的域名/index.php/wp-json/wp/v2/posts“
如果直接输域名就少个”index.php“,就访问不到。需要输入”https://www.xxx.com/index.php/“才能正常登录。
另外提示大家一下setting里面最后的”/“需要输入,不输入,拼接的字符串成了/index.phpwp-json/wp/v2/posts,也登陆不上。

[Feature Request] 支持文章的更新

非常棒的插件,好像也是目前唯一可用的 wp 插件 !!!

不知道是我使用方式的不对,还是没有这个功能,针对同一个文档,多次点击 wp icon,会发布多次
当然我的期望是如果针对同一篇文章的多次 publish,期望是更新,而不是新建一篇

数学公式中的&发布后会被加上转义符、双反斜杠\\会变成单反斜杠\

第一个问题,比如输入$$\begin{bmatrix}a&d\b&d\end{bmatrix}$$
到wordpress上会变成$$\begin{bmatrix}a&amp;d\b&amp;d\end{bmatrix}$$

第二个问题,比如输入$$\begin{cases}\vec{v}\\\vec{v_1}\end{cases}$$会变成$$\begin{cases}\vec{v}\\vec{v_1}\end{cases}$$
输入$$\begin{cases}\vec{v}\\vec{v_1}\end{cases}$$会变成$$\begin{cases}\vec{v}\vec{v_1}\end{cases}$$

然后这个公式就会渲染失败,还得手动删掉amp;和加上一个\,不知作者有没有办法解决这两个小问题,提前感谢~

Override Title with frontmatter field

There should be the possibility to have a frontmatter field that overrides the Title, so that people can "design" the title even if they need unique note names (e.g. "202309142151_Note_Title" could be the name of the note... ant "This is my new note" could be the string value used to create the post title in WordPress).

I am hoping this feature would be rather easy to be implemented as it seems there would just be a check for that alternative value in a specific frontmatter field (e.g. "wpTitle") and use that for the title instead of the note name.

404 on miniorange Rest API

I had tested the miniorange REST API concept before.
but it stopped working. the xmlrpc is functional
I use version 2.4.0 on miniorange and 0.5.0 on Wordpress publish.

It did work before. So i am not sure what happened.

app.js:1 Uncaught (in promise) Error: Request failed, status 404
at new t (app.js:1:1454507)
at VN (app.js:1:1454662)
at app.js:1:1455339
at app.js:1:235078
at Object.next (app.js:1:235183)
at s (app.js:1:233922)
t @ app.js:1
VN @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
(anonymous) @ app.js:1
s @ app.js:1
Promise.then (async)
step @ plugin:obsidian-wordpress:65
fulfilled @ plugin:obsidian-wordpress:53
Promise.then (async)
step @ plugin:obsidian-wordpress:65
eval @ plugin:obsidian-wordpress:66
__async @ plugin:obsidian-wordpress:50
eval @ plugin:obsidian-wordpress:23994
eval @ plugin:obsidian-wordpress:21949
(anonymous) @ app.js:1

the link the in console looks like the URL ist both API endpoint put together
like
wp-jason/wp/v2/postswp-jason/wp/v2/categories

hope this helps in understanding the probem

输入账号密码后,点击登录无响应

你好,为啥我安装插件后添加了账户,发布笔记时输入账号密码点击登录无响应,什么提示也没有,这是什么原因啊?下图是账号配置
image

No publish button?

After pushing the sidebar button to begin the publishing process there doesn't seem to be a way to actually confirm the publish from the dialog that's presented. Screenshot attached.

Hitting the 'x' to close the dialog dismisses it as expected. No post appears on Wordpress, no confirmation and no error message.

image

XML-RPC API 不能打开评论

如题
XML-RPC API 创建的 post allow comments默认是关的
RESTAPI 就是打开的

尝试了uncheck再check
Allow people to post comments on new articles

无果

[Feature Request] Custom XMLRPC name

For security reasons I change my XMLRPC from the normal xmlrpc.php and change it to something obfuscated and hard to guess.

I would like to have the ability to change that without editing the code manually.
I tried adding the code necessary but it seems like there's something I'm missing, since I keep getting an error "Invalid '!' in opening tag"
Not sure why the API is returning the main html page.
From my logs the customxml string is properly returned in the endpoint.

Figure you have better familiarity and would know exactly what I'm missing.

MathJax 输出格式问题

设置

开启 SVG模式
image

公式SVG生成成功,但原文换行没了。

Obsidian 原文:
image

Wordpress 中直接预览文章:
image

编辑状态下 SVG不显示,再次保持会导致公式SVG丢失。
image

Support more post types

First I wonder if it possible: Enabling the selection of Post Types (minimal: Pages, Posts)

Feature Request

I apologize I was unable to locate option where I could have labelled this issue as "Feature Request"

Could there possibly be a feature where I could "dump" entire folder or vault in to wordpress.
Publishing one note at a time is bit tedious.

How to post images

Hi there,

the plugin worked pretty well, but I am not able to post images. Is it a bug or a feature

Using REST API by applikation

Greetings
Marcel

remember password

This plugin is amazing, I really like this kind of workflow.

but if I can remember the username and password, load categories page directly, That will be cool.

And I use REST mode, It can only show 10 categories, I dont know why. in this video , It show more categories (https://youtu.be/7YECfr_W1WM)

Maybe we can add username and password in plugin settings?

Other suggestions:

-tags
-custom url link?

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.