Skip to main content

Editing feature for github, markdown file.

Project description

pip install GitEdit

   from editfile.util import createContent,m
   algebra = [
   m("a^2-b^2 = (a-b)(a\dotplus{b})"),
   m("\displaystyle x = \\frac{-b\pm\sqrt{b^2-4ac}}{2a}")
   ]
   tri = [
    m("sin\\theta")
   ]
   integral = [
   m("\displaystyle \int_0^2{x^2}dx")
   ]
   diff = [
    m("x^2 \\frac{dy}{dx}")
   ]
   prob = [
    m("\sigma^2")
   ]

topic = ["Mathematics",
           ["1. Algebra",algebra,
           "2. Trigonometry",tri,
           "3. Integral",integral,
            "4. Differentiation",diff,"5. Propability",prob],
          "Physics",["1. Quantum","2. Wave motion","3. Heat and Thermodynamics","4. Optics","5. Semiconductor"],
           "Chemistry",[
             "1. Periodic table",
             "2. Inorganic",
             "3. Organic"
            ]
         ]


createContent("test.md",expandColor="blue",data=topic)

Output

View in test.md file

Mathematics
    1. Algebra
2. Trigonometry
3. Integral
4. Differentiation
5. Propability
Physics
    1. Quantum
    2. Wave motion
    3. Heat and Thermodynamics
    4. Optics
    5. Semiconductor
Chemistry
    1. Periodic table
    2. Inorganic
    3. Organic

Watch the video

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

GitEdit-0.0.5.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

GitEdit-0.0.5-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page