Update formatted_text.py
This commit is contained in:
parent
8045476dba
commit
5b313702f7
@ -76,64 +76,3 @@ class FormattedText:
|
|||||||
plaintext = property(fget=get_plaintext, fset=set_plaintext)
|
plaintext = property(fget=get_plaintext, fset=set_plaintext)
|
||||||
markdown = property(fget=get_markdown, fset=set_markdown)
|
markdown = property(fget=get_markdown, fset=set_markdown)
|
||||||
html = property(fget=get_html, fset=set_html)
|
html = property(fget=get_html, fset=set_html)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
_plaintext = """
|
|
||||||
World of Work
|
|
||||||
|
|
||||||
1. The right to help out society, and being paied for it
|
|
||||||
2. The right to get paied, so you can get along well.
|
|
||||||
3. The right for every individual to sell their products to provide for
|
|
||||||
themselfes or for others
|
|
||||||
4. The right of fair competitions, meaning eg. no monopoles.
|
|
||||||
5. The right for a home.
|
|
||||||
6. The right to good healthcare
|
|
||||||
7. The right of protections against tragedies, be it personal ones, or
|
|
||||||
global ones.
|
|
||||||
8. The right to be educated in a way that enables you to work.
|
|
||||||
|
|
||||||
3 most important ones
|
|
||||||
|
|
||||||
1. The right to get paied, so you can get along well.
|
|
||||||
2. The right for a home.
|
|
||||||
3. The right for a good healthcare.
|
|
||||||
"""
|
|
||||||
_markdown = """
|
|
||||||
# World of Work
|
|
||||||
|
|
||||||
1. The right to help out society, and being paied for it
|
|
||||||
2. **The right to get paied, so you can get along well.**
|
|
||||||
3. The right for every individual to sell their products to provide for themselfes or for others
|
|
||||||
4. The right of fair competitions, meaning eg. no monopoles.
|
|
||||||
5. **The right for a home.**
|
|
||||||
6. **The right to good healthcare**
|
|
||||||
7. The right of protections against tragedies, be it personal ones, or global ones.
|
|
||||||
8. The right to be educated in a way that enables you to work.
|
|
||||||
|
|
||||||
## 3 most important ones
|
|
||||||
|
|
||||||
1. The right to get paied, so you can get along well.
|
|
||||||
2. The right for a home.
|
|
||||||
3. The right for a good healthcare.
|
|
||||||
"""
|
|
||||||
_html = """
|
|
||||||
<b>Contact:</b> <a href="mailto:ghostbath@live.com">ghostbath@live.com</a><br />
|
|
||||||
<br />
|
|
||||||
Although the band originally claimed that they were from Chongqing, China, it has been revealed in a 2015 interview with <b>Noisey</b> that they're an American band based in Minot, North Dakota.<br />
|
|
||||||
<br />
|
|
||||||
According to the band, "Ghost Bath" refers to "the act of committing suicide by submerging in a body of water."<br />
|
|
||||||
<br />
|
|
||||||
<b>Compilation appearance(s):</b><br />
|
|
||||||
- "Luminescence" on <i>Jericho Vol.36 - Nyctophobia</i> (2018) []
|
|
||||||
"""
|
|
||||||
|
|
||||||
# notes = FormattedText(html=html)
|
|
||||||
# notes = FormattedText(markdown=_markdown)
|
|
||||||
notes = FormattedText(plaintext=_plaintext)
|
|
||||||
|
|
||||||
# print(notes.get_html())
|
|
||||||
# print("-"*30)
|
|
||||||
# print(notes.get_markdown())
|
|
||||||
|
|
||||||
print(notes.get_markdown())
|
|
||||||
|
Loading…
Reference in New Issue
Block a user