some of the attributes maybe missing or not correct. If you find any please feel free to notify me and update this gist
Below is the code for converting
from bs4 import BeautifulSoup, NavigableString
def convert_html_to_delta(html_string):
soup = BeautifulSoup(html_string, "html.parser")