将书签存储在降价文件中,如何对标签进行编码?
Storing bookmarks in a markdown file, how could I encode tags?
我是书签的长期用户,我想使用一个简单的基于文本的系统重新开始,该系统可以在 git 中存档和合并。我开始将书签存储在降价格式的文件中。我有一个名为 bookmark.md 的文件,其中包含标题和链接,例如:
# Q & A sites
[Whosebug](http://whosebug.com)
然后我用
将文件转换为html
pandoc -s bookmark.md -o bookmark.md.html
我看到 this simple system 将所有书签存储在 html 文件中,并将标签存储在 <id title="">
标签中。例如,标签 photography
和 stackexchange
将存储在:
<li title="photography, stackexchange">
以降价格式对此类标签进行编码的最佳方法是什么?
即使是普通的 markdown 也能让你 optional title tag
随便写
# Q & A sites
[Whosebug](http://whosebug.com "photography, stackexchange")
你会得到一个带有标题的link。
顺便说一句:标题标签可能不是 "right" html-tag 标签,但它会起作用。
我是书签的长期用户,我想使用一个简单的基于文本的系统重新开始,该系统可以在 git 中存档和合并。我开始将书签存储在降价格式的文件中。我有一个名为 bookmark.md 的文件,其中包含标题和链接,例如:
# Q & A sites
[Whosebug](http://whosebug.com)
然后我用
将文件转换为htmlpandoc -s bookmark.md -o bookmark.md.html
我看到 this simple system 将所有书签存储在 html 文件中,并将标签存储在 <id title="">
标签中。例如,标签 photography
和 stackexchange
将存储在:
<li title="photography, stackexchange">
以降价格式对此类标签进行编码的最佳方法是什么?
即使是普通的 markdown 也能让你 optional title tag
随便写
# Q & A sites
[Whosebug](http://whosebug.com "photography, stackexchange")
你会得到一个带有标题的link。
顺便说一句:标题标签可能不是 "right" html-tag 标签,但它会起作用。