AlexVonB
aceced68eb
cleaning up changes with help of linter
2020-08-09 21:17:39 +02:00
AlexVonB
b747378b52
fixed nested lists and wrote correct tests
...
nested lists did not work: after a nested list was over,
a new line was inserted. this leads to a large gap before
the rest of the parent list.
lists are prefixed and suffixed with a single newline,
this is now represented in the tests.
2020-08-09 21:11:16 +02:00
AlexVonB
ee73d89879
Merge pull request #14 from AlexVonB/fix-inline-spaces
...
remove prefixed and suffixed spaces from inline tags
2020-08-09 20:24:23 +02:00
AlexVonB
5563161c86
remove needless checks for emtpy text
2019-07-12 10:23:17 +02:00
AlexVonB
28e447d9ae
remove prefixed and suffixed spaces from inline tags
...
fixes matthewwithanm#13
2019-07-11 23:27:52 +02:00
AlexVonB
d0f688d2e4
Add newline before and after a markdown list
...
Fixes matthewwithanm#5 as well as an issue where `<p>foo<p><ul><li>bar</li></ul>` gets converted to `foo * bar` which is not correct
2019-07-04 16:26:09 +02:00
Steven Skoczen
b132a6f5b3
Updates to 0.4.1, pkgmeta included directly in setup.
2017-11-28 12:07:31 +13:00
Steven Skoczen
0abe0a29e8
Merge pull request #2 from crhallberg/html-parser
...
Suppress BeautifulSoup warning
2017-11-13 08:48:45 +13:00
Chris Hallberg
8696e2bde1
Suppress BeautifulSoup warning
...
by explicitly passing in the default parser as recommended by the error message:
```
/home/challberg/.local/lib/python2.7/site-packages/bs4/__init__.py:181: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.
The code that caused this warning is on line 35 of the file unroll.py. To get rid of this warning, change code that looks like this:
BeautifulSoup(YOUR_MARKUP})
to this:
BeautifulSoup(YOUR_MARKUP, "html.parser")
markup_type=markup_type))
```
2017-06-12 16:03:04 -04:00
dmpayton
ee53d85c41
Fixes to get tests passing in Python 3.
2016-02-23 15:15:29 -08:00
Matthew Tretter
fb98e9878f
Bump to 0.4.0
2013-07-31 23:12:53 -04:00
Matthew Tretter
3ea09609e6
Add support for "bullets" option
2013-07-31 23:08:36 -04:00
Matthew Tretter
891a4a8d08
Add "heading_style" option
...
Allow the user to specify a heading style.
2013-07-31 22:17:22 -04:00
Matthew Tretter
f60d910335
Add "autolinks" option
...
This option allows you to disable the creation of "autolink" style
links.
2013-07-31 21:58:48 -04:00
Matthew Tretter
d707d107f6
Support inner Options class
2013-07-31 21:55:30 -04:00
Matthew Tretter
1ef4dd1468
Add shortcut link syntax
2013-07-31 19:23:39 -04:00
Matthew Tretter
8a1e2d9403
Add simple img conversion
2013-07-31 19:23:36 -04:00
Matthew Tretter
5563723cbc
Bump to 0.3.0
2013-07-31 18:16:02 -04:00
Matthew Tretter
a9c13a56da
Identify and single out HTML fragment
2013-07-31 18:13:50 -04:00
Matthew Tretter
7bdeb15b18
Use bs4
...
This causes a lot more tests to fail. But it'll be worth it in the end.
2013-07-31 18:01:52 -04:00
Matthew Tretter
0211ac6619
Lint code
2013-07-31 17:20:36 -04:00
Matthew Tretter
ece61a5b1f
Bump to 0.2.0
2013-07-31 17:11:12 -04:00
Matthew Tretter
7f75b0bbce
Update package meta
2013-07-31 16:40:56 -04:00
Matthew Tretter
72d6e6c5ee
Clean up process_tag
...
No more putting text back into nodes
2012-07-16 12:12:28 -04:00
Matthew Tretter
3b5049a975
Pass text to conversion functions
2012-07-16 10:29:14 -04:00
Matthew Tretter
697f7d3276
Add arguments for specifying tags to strip/convert
2012-07-13 17:25:10 -04:00
Matthew Tretter
293937c991
Nested blockquote support
2012-07-06 21:13:59 -04:00
Matthew Tretter
7f391f8e9a
blockquote tag conversion
2012-07-06 21:09:48 -04:00
Matthew Tretter
6c760081b5
br tag conversion
2012-06-29 14:59:29 -04:00
Matthew Tretter
7b4f9b6b7d
Remove unused import
2012-06-29 14:52:10 -04:00
Matthew Tretter
6a70f9f61b
Text node processing
2012-06-29 14:51:28 -04:00
Matthew Tretter
b7e528dd8a
Rename convert_tag to process_tag
2012-06-29 14:15:30 -04:00
Matthew Tretter
1fead8f9e7
Title support for a tags
2012-06-29 13:54:29 -04:00
Matthew Tretter
22c5b2cade
Correct tail handling
2012-06-29 13:46:45 -04:00
Matthew Tretter
d73b8d4c4d
a tag conversion
2012-06-29 13:40:27 -04:00
Matthew Tretter
489217527d
Preserve attributes for conversion
2012-06-29 13:39:54 -04:00
Matthew Tretter
c31aebb066
p tag conversion
2012-06-29 13:23:18 -04:00
Matthew Tretter
e28b2fc7f6
ul and li conversion
2012-06-29 13:19:58 -04:00
Matthew Tretter
a2788df401
Favor single asterisks for i/em tags
2012-06-29 13:06:39 -04:00
Matthew Tretter
de92943b32
b and strong tag conversion
2012-06-29 13:05:48 -04:00
Matthew Tretter
9798a14f19
h* tag conversion
2012-06-29 13:02:43 -04:00
Matthew Tretter
5220ac6ea2
i tag conversion
2012-06-29 12:51:12 -04:00
Matthew Tretter
77172ab3ba
em tag conversion
2012-06-29 12:51:09 -04:00
Matthew Tretter
59fd19b29a
Add escape util
2012-06-29 12:51:02 -04:00
Matthew Tretter
c7cbe8a5b1
h1 and h2 tag conversion
2012-06-29 12:51:00 -04:00
Matthew Tretter
36cb7f6ac1
Basic conversion skeleton
2012-06-29 12:29:09 -04:00