在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):JeNeSuisPasDave/MarkdownTools开源软件地址(OpenSource Url):https://github.com/JeNeSuisPasDave/MarkdownTools开源编程语言(OpenSource Language):CSS 98.8%开源软件介绍(OpenSource Introduction):MarkdownToolsMarkdownTools is a collection of command line utilities for processing Markdown text files. At the moment the collection includes only one utility: mdmerge. Over time additional utilities will be added to support Markdown workflows. Current stable version is 1.0. See the Installation section below for guidance. mdmergemdmerge is a command line utility that produces a single Markdown document by merging a set of Markdown documents. The merge can be accomplished by expanding include specifications found in the input files, by concatenating a list of files found in an index file, or both. Synergy with MarkedBrett Terpstra's Marked 2 application is a GUI product that runs on OS X; it watches Markdown text files and displays the formatted output; it has extensive support for multi-file Markdown documents. Marked is my tool of choice for viewing formatted Markdown. I use it whenever I'm creating or reviewing Markdown content on my OS X machine. The invaluable multi-file document support in Marked is what drove me to create mdmerge. mdmerge brings that same multi-file Markdown document processing to the command line. It is useful in any automated scripting environment where Markdown is processed. For example, I use it in automated build scripts (e.g., using gmake or Grunt) to produce documentation for the software I'm building. It is cross-platform; you can pre-process the Markdown files on any common OS that has a recent version of Python. Markdown and include file syntax supportmdmerge has been tested with documents containing these Markdown syntax variants:
mdmerge accepts include declarations in these styles
Includes can be nested; that is, a file can include another file that itself include other files, and so on. Index (or book) files are only processed as such when they are the primary input; they cannot be nested -- but the files listed in the index file are treated as normal input files (expanding include specifications found within). some examplesThis example shows an include specification of another markdown file:
This example shows an include specification for source code:
This example shows a normal MultiMarkdown transclusion and a source code transclusion:
And of course there are raw file includes ( InstallationInstallation packages are available on PyPI. For Python 3 (3.3 or later) install the Install the package using pip, like this (in a Python 3 environment): $ pip install MarkdownTools or (in a Python 2 environment): $ pip install MarkdownTools2 If you are upgrading an existing version, use You may need to use UsageThe command line looks like this:
Command argumentsoptions
: One or more of
DevelopmentMarkdownTools are written in Python. The project repository contains The TestingTo run the tests: $ ./runtests.sh For Python 2 environments you will need to install the mock package (e.g., ContributingSimilar to the contribution guidance from https://github.com/github/markup:
Contributors should read the developer documentation, available in the License and CopyrightMarkdownTools is licensed with the Mozilla Public License Version 2.0. Copyright 2014 Dave Hein |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论