Comments (16)
哦哦,这样呀,找到问题就好,非常感谢你专门帮助我,昨天晚上在你博客看了一阵,joplin+blog这个创意很棒!日后项目如有其他需要,也希望可以帮上忙(虽然我不是程序员,编程只接触过一点)。
from joplin-utils.
吾辈怀疑是数据库的错误,之前也有人遇到过,参考:#19
请使用该页面批量检查并修复:https://joplin-utils.rxliuli.com/web/joplin-batch-web/#/fixFileExtension
from joplin-utils.
暂时开放该问题以让吾辈后面记得在 joplin-blog 复制资源时找不到扩展名添加更明确的错误提示
from joplin-utils.
你好,非常感谢你的帮助。用了页面修复后,resource文件夹内可以看到图片复制过来了,但是在网页上还无法显示,如下图:
右键新标签页打开后是这样
from joplin-utils.
请配置 hexo 的 permalink: /p/:abbrlink/
,参考:
from joplin-utils.
用了你的blog-hexo-example/_config.yml,或配置成permalink: /p/:abbrlink/后,还无法显示
source文件夹如下:
第一次用hexo,不懂555,太麻烦你了
from joplin-utils.
如果第一次使用的话,可以参考这里,直接使用现有的模板
https://joplin-utils.rxliuli.com/zh/joplin-blog/guide.html#%E5%89%8D%E7%BD%AE%E6%9D%A1%E4%BB%B6
from joplin-utils.
另外上面的错误看起来是没有正确转换 joplin 的链接为 hexo blog 的链接,可以看下导出的 markdown 中的链接么?是 /resources/
开头还是 :/
开头
from joplin-utils.
from joplin-utils.
也没有拓展名
from joplin-utils.
把路径换成/resource/,扩展名加上后,可以正常显示了.....
from joplin-utils.
能使用该示例测试一下么?
请修改 .joplin-blog.json 配置文件,然后 gen => server
from joplin-utils.
另外上面的错误看起来是没有正确转换 joplin 的链接为 hexo blog 的链接,可以看下导出的 markdown 中的链接么?是
/resources/
开头还是:/
开头
等等,你的 joplin 笔记里直接使用 img 标签插入图片,而不是 markdown 语法?
例如
![markdown 图片](:/id)
from joplin-utils.
这个笔记是以前印象笔记普通的,不是用markdown语法的
from joplin-utils.
这个笔记是以前印象笔记普通的,不是用 markdown 语法的
那就 gg 了,joplin 官方看起来没有将 en 中的 html 转换为 markdown,但吾辈也只处理 markdown 而已。。。如果没有多少的话可以在 joplin 中手动转换过来么?仅转换需要发布为 blog 的部分即可。
from joplin-utils.
我写了个脚本
- 可以提取Joplin-Desktop中的附加文件(例如*.png|*.txt|*pdf...etc)放在hexo/source/resources/里面。
- 自动把Markdown文件中的[fileName.ext](:/guid)转换为为[fileName.ext](/resources/guid.ext)
如果你跟我一样Hexo在别的机器上的话,需要跟我一样开启sshd,并设置好authorized_keys无密码使用scp
可以参考我的脚步:
#! /usr/bin/bash
# Get hexo server directory.
hexo_dir=`pwd`
mkdir -p $hexo_dir/tmp $hexo_dir/source/resources
# hexo post resources directory.
local_rsc_dir=$hexo_dir/source/resources/
# Get Joplin-Desktop resources directory.
echo "Where is your Joplin-Desktop resources directory? (mac or win)"
read client
case $client in
mac)
remote_rsc_dir=yourName@yourIP:/Users/yourName/.config/joplin-desktop/resources/
;;
win)
remote_rsc_dir=yourName@yourIP:/C:/User/yourName/.config/joplin-desktop/resources/
;;
*)
echo "error"
;;
esac
echo "What is the new post file path?"
read post_path
while read LINE
do
if [[ $LINE =~ \!?\[.*\.[0-9a-zA-Z]*\]\(:\/.*\) ]];
then
post_rsc_name=`echo $LINE | egrep -o ':/\w*' | cut -c3-`
ext=`echo $LINE | egrep -o '\.\w*\]' | sed -e 's/.$//'`
echo $LINE | sed -e 's/](:/](\/resources/g' -e 's/\s*$//' -e "s/)$/$ext)/g"
scp $remote_rsc_dir$post_rsc_name$ext $local_rsc_dir > /dev/null
else
echo $LINE
fi
done < ${post_path} > /tmp/tmp.md
\cp -f /tmp/tmp.md $post_path
# 匹配md文件里的添加文件部分
#egrep -o '\!?\[.*\.\w*\]\(:\/.*\)' test.md
# 匹配md文件里的添加文件部分 把':'改为'/resources'
#egrep -o '\!?\[.*\.\w*\]\(:\/.*\)' test.md | sed -e 's/\:/\/resources/'
# 匹配md文件里的添加文件部分 把':'改为'/resources' 把最后面的)删除了
#egrep -o '\!?\[.*\.\w*\]\(:\/.*\)' test.md | sed -e 's/\:/\/resources/;s/)$//'
# 匹配md文件里的添加文件部分 把':'改为'/resources' 提取.txt]文件后缀 删
除文件后缀]
#egrep -o '\!?\[.*\.\w*\]\(:\/.*\)' test.md | sed -e 's/\:/\/resources/' | egrep -o '\.\w*\]' | sed -e 's/\]//g'
~
如果觉得不错可以来我GitHub页面给我点个🌟哈
from joplin-utils.
Related Issues (20)
- [Bug]: Links to headers not working HOT 2
- [Bug]: Plugin cannot reconnect if Joplin wasn't running at first attempt HOT 1
- [Feat]: HOT 2
- Create a new feature to scan and update the internal Joplin note's title link. HOT 6
- [Bug]: command "Upload Image from Clipboard" does nothing in VSCode on Linux Mint 21.2 HOT 3
- [Feat]: Support direct webdav access HOT 6
- [Bug]: Blob is not defined when upload image HOT 1
- [Feat]: 目前搜索能力跟 Joplin 完全一样,能不能增强呢? HOT 35
- [Bug]: markdown文档无法用 Markdown-Preview-Enhanced 插件打开预览 HOT 2
- [Feat]: Support Joplin's custom notes ordering HOT 1
- [Feat]: Add Outline view to Joplin's sidebar HOT 4
- [Feat]: Support "Follow link (Ctrl+Click)" to notes HOT 1
- [Feat]: 能否在侧边栏添加一些菜单项? HOT 1
- [Bug]: Edits to notes are lost, if "too many open files" in Linux HOT 2
- [Bug]: 安裝code spell checker插件後自動換行的字數超出頁面 HOT 2
- [Feat]: Create note from selection HOT 4
- [Feat]: Add Brave search engine for both Brave and Chrome browsers HOT 1
- [Feat]: Add a setting to expand search to note bodies HOT 1
- [Bug]: Search integration with Brave using search.brave.com no longer working HOT 1
- [Bug]: Windows Search Indexer keeps running when there is no edit action HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from joplin-utils.