Saravanan666/pypi-org huggingface dataset:
Package: markdown2Mathjax
markdown2Mathjax (https://github.com/constantAmateur/markdown2Mathjax) is a simple package that allows you to use latex style math generated by MathJax (http://mathjax.org) in conjunction with the popular markdown format.  There are two implementations of markdown in python, this package is designed to be used with the more widely used and actively maintained of the two, called markdown2 (https://github.com/trentm/python-markdown2).  Typical usage is as follows:#!/usr/bin/env python

from markdown2Mathjax import sanitizeInput, reconstructMath
from markdown2 import markdown

tmp = sanitizeInput(sometxt)
markdedDownText = markdown(tmp[0])
finalOutput = reconstructMath(markedDownText,tmp[1])(where “sometxt” is a string containing the markdown+mathjax text.)Installationmarkdown2Mathjax is hosted on pypi, so can be installed either from source, using:tar zxvf markdown2Mathjax-x.x.x.tar.gz
cd markdown2Mathjax-x.x.x
python setup.py installor using pip (or easy_install if you’d prefer):pip install markdown2MathjaxUsageBy default, math is marked by single $ signs for inline math and double $$ signs for equations.  However, any delimiting strings may be used by changing the keyword arguments to the sanitizeInput and reconstructMath functions.  Note that by default mathjax does NOT use single dollars signs to delimit inline math, so if you use the defaults for this package, you will have to instruct mathjax to treat it appropriately.ExplanationThe sanitizeInput function finds any instances of math (as determined by the supplied delimiters) and replaces them with a placeholder.  This placeholder can be specified by the user, but it is recommended you use the supplied default of “$0$”.  The placeholder has to be something that won’t be processed by markdown, and won’t ever be PRODUCED by markdown.  The first of these requirements is easy enough to meet, the second can be somewhat more subtle.  If the placeholder already exists in the supplied user text, it is noted by sanitizeInput and will be left alone when reconstruction math after markdown processing.Each time a valid math block is encountered and replaced by a placeholder, the math is saved in a list (called codeblocks) which is then returned by the sanitizeInput function.  Each entry in codeblocks is prefixed with either 0 (for a literal occurance of the placeholder in the text), a 1 for inline math or a 2 for a separate equation.The sanitized string from sanitizeInput can then be marked up by markdown without fear of your math being mangled.  Finally, reconstructMath replaces each of the placeholders in the marked up text with the appropriate codeblock.  This final html can then be displayed with appropriate mathjax javascript headers.Another way to think about this is than reconstructMath is basically the inverse of sanitizeInput.  So without using markdown in between, nothing should change between the two (except when reconstructMath also does some extra cleanup of the math codeblocks).  That is:tmp=sanitizeInput(test)
reconstructMath(tmp[0],tmp[1])==testshould always evaluate to true.
Package: markdown2pdf3
It works well on Python3 and Windows 10,
and not tested on other platforms.Markdown2pdf is a command-line tool to convert markdown file into pdf.InstallationTo install Markdown2PDF you may need to install PDF convertion tool first,Install Markdown2PDF by pip:pipinstallmarkdown2pdf3UsageYou can use Markdown2PDF via simple commandmd2pdf:md2pdfarticle.md
Package: markdown2social
# Markdown2SocialThe Markdown2Social utility converts simple Markdown documents to Google+
posts ready to be shared on the social network.There is room for writing
output plugins for other target sites, but at the moment only Google+ is
supported.This is not an official Google product.## Why?Long-form posts on social networks are more engaging than simply posting a bare
link to the exact same content hosted elsewhere.  However, composing long-form
posts on social networks is not a pleasant experience because their editors are
not designed to support long posts and because their formatting options are
severely limited.What if you could write that same content in a more durable and flexible format,
say Markdown, and later export the text to the formats accepted by the networks
of your choice?  This would let you compose your posts using the myriad of
editors that support Markdown, would let you store those posts in a version
control system, and may even let you republish that same content directly on
your site with ease.This is exactly the goal of Markdown2Social: to let you store your articles’
master copies in a version control system while providing a mechanism to extract
a simplified version that can be shared in a social network.  Does this work?
For the most part yes, but there are obvious limitations; keep reading.## DownloadThe latest version of Markdown2Social is 0.3 and was released on
January 14th, 2016.Download: [markdown2social-0.3](../../releases/tag/markdown2social-0.3)See the [release notes](NEWS.md) for information about the changes in this and
all previous releases.## InstallationUsingpip:` $ pip install markdown2social `From sources after cloning the tree from GitHub:`shell $ ./setup.py install `See the [detailed installation instructions](INSTALL.md) for additional
information.## UsageUsemarkdown2socialas a filter or with explicit file names to generate
a.gplusfile:`shell $ markdown2social <doc.md >doc.gplus $ markdown2social-odoc.gplus doc.md `Open the.gplusfile in your favorite editor.Copy the whole contents to the clipboard.Paste them into a new Google+ post.Hit share and voil&agrave;!
Package: markdown3-newtab
markdown-newtabThis extension modifies the HTML output of Python-Markdown to open all
links in a new tab by addingtarget="_blank". Seerun_tests.pyfor
example usage.Updated to work on Markdown 3.0+.pip install markdown3-newtabUsagefrommarkdownimportMarkdownMarkdown(extensions=[NewTabExtension()])orfrommarkdownimportMarkdownMarkdown(extensions=[markdown3-newtab])
Package: markdown-aafigure
Markdown aafigureThis is an extension forPython Markdownwhich renders diagrams usingaafigure.Project/Repo:Code Quality/CI:NamerolesinceuntilManuel Barkhau (mbarkhau@gmail.com)author/maintainer2018-05-INFO: You may want to consider using themarkdown-svgbobextension instead of this one. svgbob has anonline editorand supports a wider range of shapes and diagrams. Its main disadvantage is that it "only" has builtin support for x86_64 on Windows, Linux and Mac, in contrast to aafigure which is pure python and supported everywhere.Install$pipinstallmarkdown-aafigure
$pipinstallPillow# only if you want to render as pngUseIn your markdown text you can define the block:```aafigure
      +-----+   ^
      |     |   |
  --->+     +---o--->
      |     |   |
      +-----+   V
```Parameters can be set for individual figures.Availabale parameters```aafigure {"foreground": "#ff0000"}
      +-----+   ^
      |     |   |
  --->+     +---o--->
      |     |   |
      +-----+   V
```Development/Testing$gitclonehttps://gitlab.com/mbarkhau/markdown_aafigure
$cdmarkdown_aafigure
$makeinstall
$makelintmypytestMkDocs IntegrationIn yourmkdocs.ymladd this to markdown_extensions.markdown_extensions:-markdown_aafigure:tag_type:inline_svgValid options fortag_typeareinline_svg(the default),img_utf8_svg,img_base64_svg,img_base64_png.Changelog forhttps://gitlab.com/mbarkhau/markdown_aafigurev202104.1011Add support for blocks with extra backticksv202103.1010Fix related to#14: SinceMarkdown>=3.3support forMarkdown in HTMLwas broken.v202001.0009Fix: Ignore trailing whitespace after closing fence.v202001.0008Fix: Bad image substitution when markdown has multiple diagramsv201907.0006Fix: don't require typing package for py<35v201904.0005Add: Support for inline svgAdd:tag_typeoption for better control of embeddingDepricated:formatparameterv201904.0004Add: Support of format: png extension configuration (requires Pillow)Fix: Use base64 encoding for image uriv201904.0003Fix #3: escape xml in image data uriFix: cleanup debug outputChange: Move to gitlab.com/mbarkhau/markdown-aafigureChange: Switch to pycalverChange: Project packaging updates0.2.0 (2018-05-28)Initial release
Package: markdown-alerts
markdown-alertsPython-Markdown Admonition alternative extension with a shortened syntax. DependsPython-Markdown.This extension supports one-line and multi-line text. The end of the remark block is an empty line.Example::::info This is an one-line admonition!

:::info This is a
multi-line
admonition!

:::info
It works too!

This paragraph is not an admonition's part.There can be an arbitrary number of spaces between the admonition start character:::and the admonition type designation.Supported admonition types::::info
:::note
:::tip
:::success
:::warning
:::dangerInstallation and usageInstallation:pip install markdown-alertsUsage:frommarkdownimportMarkdownhtml=Markdown(extensions=['markdown_alerts'])ConfigurationBy default, the extension installs the following CSS classes for div blocks. For example for:::note:<divclass="alert note"><p>This is note!</p></div>You can override these classes by adding your own configuration. Example forBootstrap 5:ext_configs={'markdown_alerts':{'info':'alert alert-info','note':'alert alert-primary','tip':'alert alert-success','success':'alert alert-success','warning':'alert alert-warning','danger':'alert alert-danger'}}html=Markdown(extensions=['markdown_alerts'],extension_configs=ext_configs)LicenseThis software is provided under The Unlicense. SeeLICENSEfor details.
Package: markdown-ansi
markdown-ansiApymdownx.superfencesformatter for rendering console output with ANSI colors usingansi2html.Note:OnlyANSI color escape sequences are supported. Other escape sequences should be removed manually.Usagemarkdown_extensions:-pymdownx.superfences:custom_fences:-name:ansiclass:ansiformat:!!python/name:markdown_ansi.ansi.fence_code_format
Package: markdown-badge
BadgeSummaryThe markdown-badge extension adds support for badges to Markdown documents. Badges are otherwise known as Labels or Tags, and the UI used to create them is often described as a Chip or a Pill.SyntaxBadges are created using the following syntax:{{ type "optional explicit title within double quotes" }}typewill be used as the CSS class name and as default title. It must be a
single word. So, for instance:{{ note "Alpha" }}will render:<spanclass="badge note"><spanclass="badge-title">Alpha</span></span>Optionally, you can use custom titles. For instance:{{ danger "Warning" }}will render:<spanclass="badge danger"><spanclass="badge-title">Warning</span></span>If you don't want a title, use a blank string"":This is a badge without a title: {{ important "" }}results in:<spanclass="badge danger"></span>You can also provide additional CSS class names separated by spaces. The first
class should be the "type." For example:{{ danger highlight blink "Don't try this at home" }}will render:<spanclass="badge danger highlight blink"><spanclass="badge-title">Don't try this at home</span></span>StylingThere is no CSS included as part of this extension. Check out the defaultSphinxtheme for inspiration.UsageSeeExtensionsfor general extension usage. Usebadgeas the
name of the extension.This extension does not accept any special configuration options.A trivial example:markdown.markdown(some_text,extensions=['badge'])
Package: markdown-builder
markdown-buildermarkdown-builderis a minimalist package for creatingMarkDowndocuments in a Python program.It requires Python 3.It grew out of a number of Python applications that needed similar functionality.
At present, it only supports the features required by those applications,
but I'm open to suggestions for additions.TheDRY principleled me to separate out the code into a separate package.Withmarkdown-builderyou can build a Markdown document in a few lines
of Python code.Installationpip3 install markdown-builder.QuickstartThe following Python program will generateSAMPLE.mdfrommarkdown_builder.documentimportMarkdownDocumentmd=MarkdownDocument()md.append_heading('Welcome to MarkDown')md.append_text('markdown-builder is really easy to use')md.append_heading('This is a level2 heading',2)md.append_text_indented('This is inset',depth=1)md.append_bullet('This is a top-level bullet point')md.append_bullet('This is a lower level bullet point',depth=1)
Package: markdown-callouts
markdown-calloutsExtension forPython-Markdown: a classier syntax foradmonitionsInstallationpipinstallmarkdown-calloutsIf using MkDocs,enable the extension inmkdocs.yml:markdown_extensions:-calloutsContinue to thedocumentation site.UsageThis adds a new block-level syntax to Markdown, to put a paragraph of text into a block that's specially highlighted and set apart from the rest of the text.Example:NOTE: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa.Result,usingmkdocs-material:Collapsible blocks also have a syntax for them:>? NOTE: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod>nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor>massa, nec semper lorem quam in massa.This instead shows up as an initially-closed<details>block.Graceful degradationThis extension produces the same results as theadmonitionextension, but with a syntax that is much less intrusive and has a very reasonable fallback look for "vanilla" renderers.E.g. compare what you would've seen above if we actually wrote that Markdown and fed it to GitHub's Markdown parser:"Callouts" syntaxNOTE: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa."Admonition" syntax!!! noteLorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa.Continue to thedocumentation site.
Package: markdown-captions
markdown-captionsConverts images with alt text to<figure>with<figcaption>.Usagepip install markdown-captionsmd=markdown.Markdown(extensions=['markdown_captions','attr_list'# optional])Examplessimple example![caption](img.jpg)
![caption2](img2.jpg)<p><figure><imgsrc="img.jpg"/><figcaption>caption</figcaption></figure><figure><imgsrc="img2.jpg"/><figcaption>caption2</figcaption></figure></p>image title and class (with attr_list extension)![caption](img.jpg "title"){: .class1 }<figureclass="class1"><imgsrc="img.jpg"title="title"/><figcaption>caption</figcaption></figure>inline captioned images<style>
    .inline {
        display: inline-block;
    }
</style>
![caption](img.jpg){: .inline }
![caption2](img2.jpg){: .inline }<p><figureclass="inline"><imgsrc="img.jpg"/><figcaption>caption</figcaption></figure><figureclass="inline"><imgsrc="img2.jpg"/><figcaption>caption2</figcaption></figure></p>images with no alt text are not captioned![](img.jpg)<imgsrc="img.jpg"/>referenced images, and shorthand references are also supported![caption][ref]
![caption2]

[ref]:img.jpg[caption2]:img2.jpg<p><figure><imgsrc="img.jpg"/><figcaption>caption</figcaption></figure><figure><imgsrc="img2.jpg"/><figcaption>caption2</figcaption></figure></p>
Package: markdown-changelog
Markdown-changelogMarkdown extension to enable easy addition of changelog badges to your documentationInstallationThe easiest way to installmarkdown-changelogis to use pippipinstallmarkdown-changelogUsageChangelog adds the ability to insert styled<span>TAG</span>tags that with appropriate CSS are rendered as
changelog badges in your documentation. The syntax requires the text to be surrounded by double semi-colon (;) signs.To add a badge to your documentation simply surround the appropriate tag with double;.importmarkdowntext=""";;fix;;"""md=markdown.Markdown(extensions=["changelog"])md.convert(text)'<p><span class="badge badge-fix">Fix</span></p>'# ormd=markdown.Markdown(extensions=["markdown_changelog.changelog"])md.convert(text)'<p><span class="badge badge-fix">Fix</span></p>'# orfrommarkdown_changelogimportChangelogExtensionmd=markdown.Markdown(extensions=[ChangelogExtension()])md.convert(text)'<p><span class="badge badge-fix">Fix</span></p>'# you can also specify versiontext=""";;VERv1.2.3;;"""md.convert(text)'<p><span class="badge badge-version">v1.2.3</span></p>'Optionsinline_style- ifTrue, the CSS style will be set inline rather so no additional CSS file(s) are requiredauto_capitalize- ifTrue, the tag will be automatically capitalizedrounded_corners- ifFalse, the edges of the badge will be square-ishtext_color- color of the text (use HEX with # e.g. #FFFFFF)fix_color- color of theFixtagchange_color- color of theChangetagimprovement_color- color of theImprovementtagnew_color- color of theNewtagdocs_color- color of theDocstagefficiency_color- color of theEfficencytagversion_color- color of theVersiontagSupported tagsThe following tags are supported by default:fixchange (or changes changed)improvement (or improvements, enhancement, enhancements)new (or feature)efficiencydocs (or documentation)All must be wrapped in double;CCSMinimum style required to render the badges correctly. You can instead use theinline_style=Trueif you want the
style to be set on each item separately.badge{display:inline-block;font-size:14px;line-height:16px;color:#ffffff;vertical-align:baseline;white-space:nowrap;background-color:#999999;padding:2px9px;border-radius:9px;text-align:center;}.badge-fix{background-color:#dc3545;}.badge-change{background-color:#fd7e14;}.badge-improvement{background-color:#007bff;}.badge-new{background-color:#28a745;}.badge-docs{background-color:#6610f2;}.badge-efficiency{background-color:#17a2b8;}.badge-remove{background-color:#4F1319;}.badge-version{min-width:75px;font-weight:600;font-size:16px;line-height:18px;background-color:#35087E;}.badge-square{border-radius:2px;}
Package: markdown-checker
markdown-checker is a markdown validation reporting tool.How ToRunpip install markdown-checker.Runmarkdown-checker -d {src} -f {func} -gu {url}. Replace{src}with the directory you want to analyze, {func} with the available functions like check_broken_paths, {gu} with your contribution guidance full URL.The output will be displayed in the terminal and in acomments.mdfile.Using markdown-checker in GitHub ActionsThe tool has been designed to be run within a GitHub workflow using theaction-check-markdownGitHub action. The action will automatically post the output of the tool to your GitHub pull request as a comment.
Package: markdown-checklist
Markdown ChecklistaPython Markdownextension for lists of
tasks with checkboxesinspired byGitHub task lists:* [ ] foo
* [x] bar
* [ ] bazbecomes<ul>
<li><input type="checkbox" disabled> foo</li>
<li><input type="checkbox" disabled checked> bar</li>
<li><input type="checkbox" disabled> baz</li>
</ul>a dash can be used instead of an asterisk for list itemsboth upper- and lowercase "x" are accepted to activate checkboxesInstallation$ pip install markdown-checklistUsageimport markdown
html = markdown.markdown(source, extensions=['markdown_checklist.extension'])orimport markdown
from markdown_checklist.extension import ChecklistExtension
html = markdown.markdown(source, extensions=[ChecklistExtension()])There is also a small JavaScript/jQuery library to make checkboxes interactive:new Checklists("article", function(checkbox, callback) {
    var uri = checkbox.closest("article").find("h1 a").attr("href");
    jQuery.get(uri, callback);
}, function(markdown, checkbox, callback) {
    var uri = checkbox.closest("article").find("h1 a").attr("href");
    jQuery.ajax({
        type: "put",
        uri: uri,
        data: markdown,
        success: callback
    });
});See includedchecklists.jsfor details.
Package: markdown-checklist-nodisable
[Markdown Checklist](https://github.com/FND/markdown-checklist)a [Python Markdown](http://pythonhosted.org/Markdown/) extension for lists oftasks with checkboxesinspired by[GitHub task lists](https://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments):* [ ] foo* [x] bar* [ ] bazbecomes<ul><li><input type="checkbox" disabled> foo</li><li><input type="checkbox" disabled checked> bar</li><li><input type="checkbox" disabled> baz</li></ul>* a dash can be used instead of an asterisk for list items* both upper- and lowercase "x" are accepted to activate checkboxesInstallation------------$ pip install markdown-checklistUsage-----import markdownhtml = markdown.markdown(source, extensions=['markdown_checklist.extension'])orimport markdownfrom markdown_checklist.extension import ChecklistExtensionhtml = markdown.markdown(source, extensions=[ChecklistExtension()])There is also a small JavaScript/jQuery library to make checkboxes interactive:new Checklists("article", function(checkbox, callback) {var uri = checkbox.closest("article").find("h1 a").attr("href");jQuery.get(uri, callback);}, function(markdown, checkbox, callback) {var uri = checkbox.closest("article").find("h1 a").attr("href");jQuery.ajax({type: "put",uri: uri,data: markdown,success: callback});});See included `checklists.js` for details.
Package: markdown-checklists
[Markdown Checklists](https://github.com/tobiashochguertel/markdown-checklists)a [Python Markdown](http://pythonhosted.org/Markdown/) extension for lists oftasks with checkboxes inspured by [GitHub task lists](https://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments).Markdown-Checklists is forked from [Markdown Checklist](https://github.com/FND/markdown-checklist) and extended with addtional features.## Features* a dash can be used instead of an asterisk for list items* both upper- and lowercase "x" are accepted to activate checkboxes## Additional Features* MakeFile provides task to create for Sublime-Text 3 Plugin [OmniMarkupPreviewer](https://github.com/timonwong/OmniMarkupPreviewer) an Markdown-Renderer extension with additonal template files.* `class` attribute for `<ul>`-Tag for Checklists.* `class` attribute for `<li>`-Tag of Checklists.* Genearting key (hash) for each checkpoint text, using hash to make checklist check"ed" able.* `id` attribute for `<input>`-Tag of Checklists.* `for` attribute for `<label>`-Tag of Checklists.## Example HTML Output```h1>Hello World</h1><ul class="checklist"><li class="task-list-item"><input type="checkbox" id="ca052d1d7e0a2f787f4ef9937840dcf91e647b08b208df4bbce2e78d527a4f8c"><label for="ca052d1d7e0a2f787f4ef9937840dcf91e647b08b208df4bbce2e78d527a4f8c"> foo</label></li><li class="task-list-item"><input type="checkbox" id="375719a43941c6a5e7f957c74b6f1d7e20cfefd0040181aaf6d3074c8eaac311" checked><label for="375719a43941c6a5e7f957c74b6f1d7e20cfefd0040181aaf6d3074c8eaac311"> bar</label></li><li class="task-list-item"><input type="checkbox" id="7d80d75283fdbf2a3d8a0e2eed45e9d844d1a7482372cd8bc59581725373c179"><label for="7d80d75283fdbf2a3d8a0e2eed45e9d844d1a7482372cd8bc59581725373c179"> baz</label></li><li class="task-list-item"><input type="checkbox"></li><li class="task-list-item"><input type="checkbox" checked></li></ul><p>lorem ipsum</p>```## Installation$ pip install markdown-checklists### Markdown-Renderer Extension for OmniMarkupPreviewer*installs the extension to the current user.*$ make OmniMarkupPreviewerInstall## Usageimport markdownhtml = markdown.markdown(source, extensions=['markdown_checklists.extension'])orimport markdownfrom markdown_checklists.extension import ChecklistsExtensionhtml = markdown.markdown(source, extensions=[ChecklistsExtension()])There is also a small JavaScript/jQuery library to make checkboxes interactive:new Checklists("article", function(checkbox, callback) {var uri = checkbox.closest("article").find("h1 a").attr("href");jQuery.get(uri, callback);}, function(markdown, checkbox, callback) {var uri = checkbox.closest("article").find("h1 a").attr("href");jQuery.ajax({type: "put",uri: uri,data: markdown,success: callback});});See included `checklists.js` for details.