Saravanan666/pypi-org huggingface dataset:
Package: markdown-kernel
A markdown kernel for JupyterInstallationIf you are using a conda environment, you can installmarkdown-kernelwith commandconda install -c conda-forge markdown-kernelOtherwise, with a workingJupyterinstallation, you can installmarkdown-kernelwith commandspip install markdown-kernel
python -m markdown_kernel.installYou can verify if amarkdownkernel is properly installed with commandjupyter kernelspec listUse amarkdownkernel by itselfmarkdown-kernelis a simple Jupyter kernel that displays
cell content as markdown. To use this kernel, you can start a Jupyter
server with commandjupyter notebookorjupyter lab, create a notebook
with this kernel, enter and render markdown texts.But wait, this isstupidbecause you can do the same thing in
Jupyter, only easier. What is the point of a markdown kernel by itself?Use a Markdown kernel in SoS NotebookIf you are familiar withR Markdown, you might know and like itsinline codethat allows results to be inserted directly into the text of a .Rmd file by enclosing the code with`r `. This is really convenient for
writing Rmarkdown report but cannot be done in Jupyter because Jupyter's markdown cells are rendered at the frontend and do not interact with Jupyter kernels  (Seeipython/ipython#2592,jupyter/help#41,andjupyter/notebook#3463for related discussions).SoS Notebookis a Jupyter kernel that supports the
use of multiple kernels in one Jupyter notebook. Although a markdown kernel by itself cannot
interpolate and evaluate expressions either, you can the%expandmagic of SoS to enable
inline expressions in Jupyter, for Python, R, and potentially many other languages. Here
is how it works:Expand expressions with SoS (Python) variablesThe SoS kernel is a super kernel that starts and communicates with all other Jupyter
kernels. Its syntax is a super set of Python 3.6+ so you can execute any Python code
in SoS kernels. The%expandmagic treats the content of a markdown cell as a Python
f-string and expands expressions enclosed in{ }, or other delimiters as option of
magic%expand.NOTE: Starting fromjupyterlab-sosversion 0.6.3,
the input of codecell with Markdown kernel are folded automatically after cell execution.Expand expressions in subkernels such as RThe--inoption of magic%expandallows you to expand the cell content in
specified subkernel, if its language module supports theexpandprotocol. This
allows the content inmarkdowncells to be expanded in other languages such as R.
Most notably, you can use%expand `r ` --in Rto expand inline expressions inR Markdowntexts.This technique is used bysos-rmarkdown, a RMarkdown to SoS Notebook converter to convert markdown text with inline expressions.
Package: markdown-lineblocks
Markdown line block extensionAPython-Markdownextension to render line blocks.Example:| Normally these lines would
| Run together. But here
| They are separateInstallationpip install markdown-lineblocksUsageimportmarkdowntext=...# your Markdown sourcehtml=markdown.markdown(text,extensions='lineblocks')To use withMkDocs, add the following tomkdocs.yml:markdown_extensions:-lineblocksLicencemarkdown-lineblocksis distributed under the terms of theMITlicence.
Package: markdown-link-checker
Markdown Link CheckerA command-line utility written in Python that checks validity of links in a markdown file.Installpip install markdown-link-checkerUsagelink_checker "markdown-file.md"OutputInvalid links in documentlinkreasonhttp://example.cHTTPConnectionPool(host='example.c', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection. HTTPConnection object at 0x1066924d0>: Failed to establish a new connection: [Errno ] nodename nor servname provided, or not known'))htp://google.comNo connection adapters were found for 'htp://google.com'http//google.comInvalid URL 'http//google.com': No schema supplied. Perhaps you meanthttp://http//google.com?Valid links in documenttextlinkherehttp://example.comUdemyhttps://udemy.com
Package: markdown-link-style
installpip3 install markdown-link-stylesourcegit clone git://git.ricketyspace.net/markdown-link-style.gitusage# footnote style

## switch to footnote link style
$ mdl-style footnote path/to/document.md

## write footnote link style version to another file
$ mdl-style footnote path/to/document.md path/to/document-footnote-style.md

# inline style

## switch to inline link style
$ mdl-style inline path/to/document.md

## write inline link style version to another file
$ mdl-style inline path/to/document.md path/to/document-inline-style.mdlicenseUnderGNU General Public License version 3 or later.
Package: markdown-live
Markdown-liveSimply run a web server from the command line that will render your
markdown files as html live.Installationpip install markdown-liveshould work. It's compatible with python 2.7, and python 3.4+.UsageInstalling markdown-live will install themarkdown_liveexecutable, which can be used as such:usage: markdown_live [-h] [-p PORT] [-v] [LOCATION]

Render markdown files and serve them with an http server.

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  Serve on this port instead of the default (port 8000)
  -v, --version         Just print out the version number
  LOCATION              either a markdown file to just render that
                        file, or a directory to server files from that
                        directoryPypiThe package is currenly available on pypihere.
Package: markdown-live-preview
Markdown Live PreviewFeaturesLive Preview:Updates preview on file saveAuto Follow:Focus on edited elementSyntax Highlight:Highlighted usingPygmentsGithub flavoured:Looks familiarPreviewThe animation is only choppy because it's a compressed gif.Usagemlp|nameofmarkdown|FlagsMeaning-p, --port PORT=8080Port to use-o, --openNo localhost restriction--nf, --no-followDo not follow edits--nf, --no-browserDo not open browserInstallpipinstall-Umarkdown_live_preview
Package: markdown-lt
markdown_ltLanguageToolfor markdown files.SetupInstall the tool:gitclonehttps://github.com/aokellermann/markdown_lt.gitcdmarkdown_lt
pipinstall-e.Usage$python-mmarkdown_lt--helpUsage: python -m markdown_lt [OPTION]... FILEFILE                           markdown file to checkAvailable options:-h, --help                    print usage information-l, --language LANG           the language code of the text-m, --mother-tongue LANG      the language code of your mother tongue-w, --wordlist DICT           a newline separated file of valid words-o, --enabled-only            disable all rules except those specified in -e-e, --enable RULES            comma-separated list of rule IDs to enable-d, --disable RULES           comma-separated list of rule IDs to disableExit code:0                             no errors1                             language errors2                             user error
Package: markdown-macros
# markdown-macrosThis is a simple extension for [python-markdown][markdown] that makes it easy to create
custom macros using a [trac-like][trac] syntax.  Check outexample.pyto see how to
use this.[markdown]:http://freewisdom.org/projects/python-markdown[trac]:http://trac.edgewall.org/demo-0.13/wiki/WikiFormatting#Macros
Package: markdown-magic
APython-Markdownplugin for autocreating memes and finding
the best-fitting gifs for your posts.Why?In most blogging platforms, putting memes or gifs in your posts is a bit
of a bother. You have to manually search for them, download/generate them,
then upload them back, or search and paste the url.This Markdown extension was created to make this process simpler,
less time-consuming, and more fun!InstallationInstall it using pip:$ pip install markdown-magicUsageFor memesSimply do[magic] meme: top_text | bottom_text [/magic]for whichever meme template you want to use, and markdown-magic
will detect which template to use on its own.The markdown-magic currently supports the following meme templates:Lord of the Rings Boromir - “One does not simply”The Most Interesting Man in the World - “I don’t always… when I do”Ancient Aliens History Channel GuyGrumpy CatBuzz Lightyear and Woody from Toy Story - “X, X everywhere”Futurama Fry - “Not sure if…”Y U NO GuyNed Stark from Game of Thrones - “Brace yourself/yourselves…”X all the YBill Lumburgh from Office Space - “…that would be great”The rent is too damn highThe Big Lebowski - “Am I the only one around here…”Matrix Morpheus - “What if I told you…”Ain’t nobody got time for thatHeath Ledger Joker - “Nobody bats an eye… everyone loses their minds”More to be added soon!For gifsJust type in[magic] gif: <list of space-separated search parameters> [/magic]and markdown-magic will search and use the appropriate gif
according to the given search parameters.Here’s an example on the Python interpreter:>>> import markdown
>>> text = """
... [magic] meme: rains | y u no happen during summers [/magic]
... Some text here.
... [magic] gif: spongebob squarepants [/magic]
... """
>>> print(markdown.markdown(text, extensions=['magic']))
<p><img alt="meme: rains | y u no happen during summers " src="http://i.imgflip.com/sytk1.jpg" title="meme: rains | y u no happen during summers " />
Some text here.
<img alt="gif: spongebob squarepants " src="http://media4.giphy.com/media/acEFQYr6ljKDu/200.gif" title="gif: spongebob squarepants " /></p>TodoExpand list of supported memesFind a way to search for xkcd comics and other webcomics efficiently using keywordsFind more cool things to implement in the [magic] tagCopyrightCopyright 2015 Radhika Ghosal, all rights reserved.This software is released under the MIT license.
Package: markdownmail
MarkdownMailPurposeSend e-mails with generated html content.The content has to be written in Markdown syntax. The text part of the e-mail
will be filled verbatim; the html part will be a converted HTML from the
Markdown content.Install$ pip install markdownmailBasic UsageimportmarkdownmailCONTENT=u"""SPAMS AND EGGS==============This is a demo with a list:1. Spam2. Second spam3. ...and eggs"""email=markdownmail.MarkdownMail(from_addr=u'alice@example.org',to_addr=u'bob@example.org',subject=u'MarkdownMail demo',content=CONTENT)email.send('localhost')Content must be unicode.More infosAdditional informations are addable:email=markdownmail.MarkdownMail(from_addr=(u'alice@example.org',u'Alice'),to_addr=(u'bob@example.org',u'Bob'),subject=u'MarkdownMail demo',content=CONTENT)cc_addrandbcc_addrare optional.
Thefrom_addr,to_addr,cc_addrandbcc_addrparameters are the same asEnveloppelibrary.Change SMTP port:email.send("example.org",port=3325)Change SMTP login and password:email.send("example.org",login="user",password="password")Use TLS:email.send("example.org",tls=True)StyleA default CSS is automatically added to the e-mail. It includes a font sans serif and minor improvements.To override the default CSS, pass a string including the style to thecssoptional parameter ofMardownMail:importmarkdownmailemail=markdownmail.MarkdownMail(from_addr=u'alice@example.org',to_addr=u'bob@example.org',subject=u'MarkdownMail demo',content="CONTENT",css="font-family:monospace; color:green;")Run testsTox is automatically installed in virtualenvs before executing the tests.
Execute them with:$ python setup.py testDisable sending e-mails in your testsThe e-mail is not send if the parameter passed tosend()method is an instance ofNullServer.email=markdownmail.MarkdownMail(#params)email.send(markdownmail.NullServer())Assert about e-mails in your testsSubclassingNullServerallows to provide a custom behaviour in thecheck()method:classMyServer(markdownmail.NullServer):defcheck(self,email):assertu'bob@example.org'==email.to_addr[0]email.send(MyServer())Useful linksEnvelopes library(MardownMail is a wrapper around Envelopes library.)Markdown syntax
Package: markdownmaker
markdownmakermarkdownmakeris an easy-to-use minimal library to generate a Markdown document with a Python API. Actually, this document you are reading right now was generated with markdownmaker for demonstration purposes (source). Currently it uses Github Flavored Markdown but more flavors might follow.This library was developed to aid with generating a reference forArmory3D'slogic nodes, thus its feature scope is rather small and the output might have some bugs when creating complex documents. If you encounter problems, please open an issue.Installationmarkdownmaker is installed viapip:pip install markdownmakerUsage (API)Import the following:frommarkdownmaker.documentimportDocumentfrommarkdownmaker.markdownmakerimport*Then, create a document:doc=Document()After you finished creating the document,doc.write()returns the Markdown source code.Emphasisdoc.add(Paragraph(Italic("This text will be italic!")))doc.add(Paragraph(Bold("This text will be bold!")))doc.add(Paragraph(f"You can also combine{Bold(Italic('bold and italic text!'))}"))This text will be italic!This text will be bold!You can also combinebold and italic text!Headersdoc.add(Header("This is a header"))withHeaderSubLevel(doc):doc.add(Header("This is a sub-header"))withHeaderSubLevel(doc):doc.add(Header("This is a sub-sub-header"))This is a headerThis is a sub-headerThis is a sub-sub-headerListsdoc.add(OrderedList(("Item 1","Item 2",UnorderedList((Bold("Sub-item A"),Italic("Sub-item B"))),"Item 3")))Item 1Item 2Sub-item ASub-item BItem 3Horizontal Ruledoc.add(HorizontalRule())Links and Imagesdoc.add(Link(label='Go to top',url='#markdownmaker'))doc.add(Image(url='https://gitlab.com/uploads/-/system/project/avatar/21351489/markdownmaker.png?width=40',alt_text='logo'))Go to topCodedoc.add(CodeBlock("""import thisimport __hello__""",language="python"))doc.add(Paragraph(f"{InlineCode('Inline code')}is also supported!"))importthisimport__hello__Inline codeis also supported!Quotesdoc.add(Quote(f"""Lorem ipsum dolor sit amet, consectetur adipiscing elit.Donec et quam at eros dignissim accumsan. Aenean quis sagittis dolor. Ut justo nisl,lobortis nec elit id, dictum ullamcorper ipsum. Fusce eu ullamcorper eros, necfeugiat lectus.{Italic(Bold("Albert Einstein."))}"""))Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Donec et quam at eros dignissim accumsan. Aenean quis sagittis dolor. Ut justo nisl,
lobortis nec elit id, dictum ullamcorper ipsum. Fusce eu ullamcorper eros, nec
feugiat lectus.Albert Einstein.Licensemarkdownmaker is licensed under thezlib license.
Package: markdown-manager
Markdown ManagerSmall python utility for managing daily todos written in MarkdownFree software: MIT licenseDocumentation:https://markdown-manager.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2022-04-07)First release on PyPI.
Package: markdown-manuscript-filters
Markdown Manuscript FiltersA set of python utilities for converting documents from markdown to pdf, especially with the aim of producing technical / research manuscripts.WorkflowThe intended workflow is to write your manuscript in markdown, either from scratch or usingmarkdown-manuscript-template.
For live editing, use an editor (like Atom / VSCode) with a markdown preview plugin(I usemarkdown-preview-enhanced)...
.. but to usepandocto produce a final document.↪"why is this a good idea?"Scientific Writing with Markdown- Jaan Tollander de Balsch,videoTechnical Writing with Pandoc and Panflute- Lee PhilipsTechnical writing using Markdown- Pankaj Kumar... however, I've found myself wanting to customize more of the final result, and automate several cleanup steps along the way. Built on top of pandoc and panflute, this repo adds several useful python functions which can do things like:compile markdown files containing@importstatements into a single documentremove to-do items and comments for a cleaner pdf outputconvert several alternate LaTeX equation delimeters to a standard pandoc-friendly formatchain these steps together to produce a single command to build your output filesand evenproduce an audio transcript of your manuscript 🤯Installationoption 1:from PyPi -pypi pagepip install markdown-manuscript-filtersoption 2:locally, in edittable form from git repo:git clone https://github.com/awillats/markdown-manuscript-filters
cd markdown-manuscript-filters
pip install --editable .Usagesage: compile_markdown.py [-h] [--dir DIR] [--aux AUX] [--out OUT] [-p] [-v] [-e] [-w] src_file

Converts markdown with @import statements to all-in-one markdown file
- then filters out common annotation
- then converts to pdf with pandoc


positional arguments:
  src_file    source markdown file (with @imports)

optional arguments:
  -h, --help  show this help message and exit
  --dir DIR   starting directory
  --aux AUX   directory for auxiliary files
  --out OUT   directory for outputs (i.e. pdf)
  -p          open (p)df after successful compile
  -v          (v)erbose
  -e          halt execution if a step (e)rrors
  -w          halt execution if any (w)arnings -- implies -efor example:python -m compile_markdown -pve manuscript_v1  --aux publish/aux/ --out publish/output↪example terminal output.. compiling @imports ..
importing: 1_introduction.md
importing: 2_methods.md
importing: 3_results.md
writing compiled file to : tests/publish/aux/mv1_out.md
.. re-adding yaml ..
.. re-adding yaml, again ..
.. undoing line wrap ..
☼☼ PDF export complete ☼☼
☼☼ available at tests/publish/output/manuscript_v1.pdf ☼☼OR, from inside a python script:importmarkdown_manuscript_filtersasmmfmmf.unicode_to_latex_file('tests/simple_file.md','tests/simple_file_out.md',is_verbose=True)ORpython-c"import markdown_manuscript_filters as mmf ; mmf.unicode_to_latex_file('tests/simple_file.md','tests/simple_file_out.md',is_verbose=True)"Image Attribution:By johnny_automatic - Open Clip Art Library image's page, CC0,https://commons.wikimedia.org/w/index.php?curid=11066062
Package: markdown-markup-emoji
markdown_markup_emojiPython-Markdownextension for markup of Emoji in the markdown document.Since it is marked up like<span class="emoji">😃</span>,
Make your Emoji bigger You can display it.InstallationInstall with pip.$ pip install markdown-markup-emojiUsageIt is used as an extension ofPython-Markdown.import markdown

md = markdown.Markdown(extensions=["markdown_markup_emoji.markup_emoji"])
md.convert("markdown text")Or use fromPelicanas Markdown extension.# pelicanconf.py
MARKDOWN = {
    'extension_configs': {
        'markdown.extensions.codehilite': {'css_class': 'highlight'},
        'markdown.extensions.extra': {},
        'markdown.extensions.meta': {},
        'markdown_markup_emoji.markup_emoji': {},
    },
    'output_format': 'html5',
}Add your styleSince it is marked up like<span class="emoji">😃</span>,
Add a style to be displayed with a bigger font.😃.emoji { font-size: 150%; }NoticeSince it does not include Emoji font, the display depends on OS.
For example, in Windows 7, pictograms may be displayed in black and white,
or may not be displayed.
Different Emoji may be displayed between iOS and Android.Unicode Full Emoji Listis here, please reference it.
Package: markdown-math-escape
markdown_math_escapePython-Markdownextension to escape math
expressions like$e^{i\pi} + 1 = 0$.DescriptionThe benefits of using this extension are:No special escaping syntax is neededYou can write\left\{, not\left\\{.On writing, you are free to choose any delimiter style as you likeThey will be converted to "brackets" styled delimiters so that they can be
processed usingMathJaxorKaTeXwithout any configuration.If you are using GitLab, you can choosegitlabdelimiter style so that
the file will be rendered with beautiful mathematics on GitLab.It's fastThis extensiondoes not rendermathematicsOn the other hand:You need to setup either MathJax or KaTeX for client-side renderingIf you are using Nikola, you can use it's built-in feature to enable themOtherwise, somehow you need to load and execute one of them
(using a theme which supports them, for example)Technically, this extension firstly protects math expressions from
Python-Markdown and its other extensions so that no unexpected (unhappy) change
will happen. Then it converts their delimiters (enclosing special characters)
to "brackets" styled delimiters... which is supported by default configuration
of MathJax and KaTeX.InstallationFirstly, install the extension by the command below:pip install markdown_math_escapeSecondly, you need to let Python-Markdown to use it. How to do it depends on
how you are using Python-Markdown. Please seeexamplesfor an example which matches your usage.OptionsThe only available option is "delimiters" which specifies the type of
delimiters enclosing mathematics in your markdown files.
See the table below for supported values.delimitersInline (non-display mode)Display mode mathdollers$e^{i\pi} + 1 = 0$$$
e^{i\pi} + 1 = 0
$$brackets\(e^{i\pi} + 1 = 0\)\[
e^{i\pi} + 1 = 0
\]gitlab$`e^{i\pi} + 1 = 0`$```math
e^{i\pi} + 1 = 0
```ExamplesPython scriptIf you are using Python-Markdown directly in your Python script (or library),
just do so in the standard way. For example:importmarkdownasmdfrommarkdown_math_escapeimportMathEscapeExtensionmd.markdown(some_text,extensions=["markdown.extensions.codehilite","markdown.extensions.extra",MathEscapeExtension(delimiters="dollers"),],)Please refer to thePython-Markdown's documentfor more details.PelicanIf you are using Python-Markdown as part ofPelican,
you can use extension namemarkdown_math_escape. For example:# pelicanconf.pyMARKDOWN={'extension_configs':{# ...other extensions..."markdown_math_escape":{"delimiters":"dollers"},}}Please refer to thePelican's documentfor more details.NikolaIf you are using Python-Markdown as part ofNikola,
you can use extension namemarkdown_math_escape. For example:# conf.pyMARKDOWN_EXTENSIONS=[# ...other extensions...'markdown_math_escape',]MARKDOWN_EXTENSION_CONFIGS={DEFAULT_LANG:{"markdown_math_escape":{"delimiters":"dollers"},},}Note that this extension is compatible withNikola's built-in option to enable
MathJax or KaTeX. Just sethas_mathmetadata field in your post totrueand select MathJax or KaTeX by
specifyingUSE_KATEXvalue inconf.py.
Package: markdown-mdantic
MdanticThis is an extension toPython-Markdown. It adds a new syntax so that you can reference apydanticBaseModeland translate its fields to a markdown table. (Get the name?) I originally make this to generate http api parameter tables withmkdocs, but you can use it for other stuffs if suitable.The code itself is a direct modification tomarkdown-includesince they do similar things.Notice: This project is still WIP and need more examples to adapt to most of the possible BaseModel models.InstallationJust use pip:pip install markdown-mdanticUsageConfig optionsinit_codewill executeanypython code in the environment when its__init__is called.
In this way you can do something like adding system path, django setup etc,
before run.Note: Please note that theinit_codething is a huge security issue if
you run that with untrusted input. Use it with caution!columnsis a comma-separated list of table columns to use in each table.
The default is to use all columns["key", "type", "required", "description", "default"].mkdocsexample:markdown_extensions:mdantic:init_code:|import osimport djangoos.environ.setdefault("DJANGO_SETTINGS_MODULE", "conf.default")django.setup()columns:[key,type,required,default]Some time ago the extension name used here should bemarkdown_mdantic, but
after some point it seems there will only be one file after installation in
python's site-packages directory (mdantic.py) so now we should use the namemdantic.reference the modelEach reference must be in one line, starts with$pydantic:(notice the
single space after the colon), following the model import path which looks
likea.b.c.DwhereDis the model class itself (which is subclass ofBaseModel).**params**:

$pydantic: src.test.TestGetSchemacustomize outputThe resulting table is rendered usingtabulate, ingithubstyle. Thecolumnsconfig option can be used to
restrict the columns to show. Styling cannot be changed at the moment. PR is welcomed.