GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - EvickaStudio/turndown-python: translation of the Turndown library into Python

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
src/turndown
src/turndown
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
main.py
main.py
 
 

Repository files navigation

Information

This is a POC/ translation of the Turndown library. The original library is written in JavaScript and can be found here.

This version has been translated to Python (with a lot of help from my friend chatty) and is not as feature complete as the original library. I do not plan to add any more features or fix anything that is not necessary for my use case. If you want to use this library or want to further develop it, feel free to fork it or just to copy the code.

As an extra this libary uses no external dependencies.

Made for Moodle-Mate

Usage

Here is an simple example of how to use the library:

from src.turndown import TurndownService

td = TurndownService({"headingStyle": "atx", "codeBlockStyle": "fenced"})

html = "<h1>Hello, World!</h1>"
markdown = td.turndown(html)
print(markdown)

About

translation of the Turndown library into Python

Topics

html2markdownhtml2mdmarkdown-convertermarkdownconversionturndown

Resources

Readme
Activity

Stars

2 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.