轻松利用github在降价文档内和降价文档之间自动生成的锚

anchorhub的Python项目详细描述


主持人中心

anchorhub是一个命令行工具,它使 在您的 Markdown文档, 允许您在github中创建丰富的、用户友好的文档 无需找出那些自动生成的标记将 是的。

功能

  • 轻松使用Github自动生成的定位标记
  • 简单的、可自定义的语法,只起作用
  • 使用单个文件、单个目录级别或整个 目录树

安装

您可以使用 pip

$ pip install anchorhub

如果PIP有问题,也可以从源代码安装:

$ git clone https://github.com/samjabrahams/anchorhub.git
$ cd anchorhub
$ python setup.py install

待办事项列表

  • 验证跨平台兼容性(目前仅在OSX上测试)
  • 支持重构文本
  • 定义用于使用自定义锚生成或
  • 更多的测试!

已知问题

  • 不应更改行内代码块(那些标记为` 反勾号)

快速入门指南

一。定义您的标签

在标记文件中,在标题行的末尾定义标记。由 默认情况下,语法为{#my-tag-here}

# This is a header that I would like to make a tag for {#tag}

You can also use Setext (underlined) style headers {#setext}
------------------------------------------------------------

默认值类似于Pandoc’s Markdown header identifiers

2.像使用常规html锚那样使用标记

在其他地方,可以使用链接中以前定义的标记来提供 标题的直接路径:

[This links back to the header using the AnchorHub tag 'tag'](#tag)

[This one links to the Setext header](#setext)

三。在标记文件上运行anchorhub

anchorhub将分析标记文件。你有几个选择 对于运行anchorhub:在单个文件上运行,在单个文件上运行 一个目录的级别,或者在整个目录树上运行它。

Single file use:
$ anchorhub mytags.md

Directory use (single level):
$ anchorhub .

Directory use (provided directory level and all subdirectories):
$ anchorhub . -r

这将把处理过的文件输出到当前文件夹中的新文件夹中 目录,“anchorhub out/”


许可证

Copyright 2016, Sam Abrahams. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java为什么只为字符数组重载println方法,而不为字符串、整数等其他数组重载?   java将快速线程返回到池中,而不是等待慢速线程   创建jar文件时java SwingWorker不工作   java如何将依赖注入RabbitListener   java如何在gradle任务中通过scp复制目录?   java在MySql数据库中创建表时,遇到NullPointerException   java HTTP Status 500 Servlet执行引发异常   在JAVA中对arraylist使用继承时出错   java PowerMockito未完成存根异常   如果没有错误/警告增加到某个极限,java是否停止在eclipse中构建项目或使用maven?   java Robolectric如何测试DateFormat。getBestDateTimePattern()   google云平台GCP数据存储Java API,构建一个空值实体   VerifyListener和FocusListener之间的java冲突   安卓是否可以在Java中的另一个方法内部强制调用一个方法?   JavaWindows7、JDK1.8、SpringBoot应用程序JAR在方法安全性方面占用了大量时间。getProviders()返回   Bean提供程序的java错误消息   java Slick动画每帧必须有一个持续时间   java无法在Trie中设置isLeaf标志   java为什么JVM不能创建包含main方法的类的对象,以便从该类访问main方法,如果它具有该类的名称?   java Apache Camel+CXF端点身份验证