elsholz / pymarkauth Goto Github PK
View Code? Open in Web Editor NEWAuthor MarkDown from a Python script.
License: MIT License
Author MarkDown from a Python script.
License: MIT License
Sections are introduced with their own heading and are structured in levels.
The root markdown object is also a section in itself; however it can't have a heading for obvious reasons.
When sections are created, they have their parent's level + 1 as their own level.
The level determines the heading's number of #
s.
Markdown Tables. Column widths should be customizable. Fields for headings and items.
Single-line and multi-line Code snippets.
Basic text styling of an arbitrary number of arguments.
From GitHub flavored markdown: Emojies. Prefereable as some kind of auto-generated list of emoji-codes and (maybe) aliases.
Generate Unordered and Ordered Lists.
section.unordered_list(
'item 1',
'item 2',
)
# output:
"""
- item 1
- item 2
"""
Nested Lists should also be possible in the following way:
l = section.ordered_list(
'item 1',
'item 2',
)
l.ordered_list(
['item 1 subitem 1'],
['item 2 subitem 1', 'item 2 subitem 2'],
)
# output:
"""
1. item 1
1. item 1 subitem 1
1. item 2
1. item 2 subitem 1
1. item 2 subitem 2
Lines: Join arguments with one new line character.
section.lines(
'line 1',
'line 2',
)
# output:
"""
line 1
line 2
"""
Paragraphs: Join arguments with two new line characters.
section.paragraphs(
'line 1',
'line 2',
)
# output:
"""
line 1
line 2
"""
It's possible that more new lines are inserted than necessary. However, markdown syntax only separates between line break and empty line between lines of content (double line break).
To avoid more than two line breaks after any given content, two approaches could be used:
MarkDown.__str__
and limit the number of empty lines to one each.NewLine
objects and during string conversion, limit their amount to 2.Which approach is better still has to be determined.
Links with target and optional display text. Images with image source and alternative text.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.