Skip to content

Instantly share code, notes, and snippets.

Working from home

Joon Hwan 김준환 xncbf

Working from home
View GitHub Profile
PurpleBooth /
Last active Jul 28, 2021
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


lorey /
Created Aug 27, 2017
Markdown to Plaintext in Python
from bs4 import BeautifulSoup
from markdown import markdown
def markdown_to_text(markdown_string):
""" Converts a markdown string to plaintext """
# md -> html -> text since BeautifulSoup can extract text cleanly
html = markdown(markdown_string)
# remove code snippets