AlexVonB
a6a31624ad
add options for sub and sup tags
...
fixes #44
2021-05-30 19:07:43 +02:00
AlexVonB
8f6d7e500d
add option 'default_title' to links
...
fixes #39
2021-05-30 18:40:40 +02:00
AlexVonB
129c4ef060
ignore doctype tag, test cdata tag
...
fixes #45
2021-05-30 11:18:18 +02:00
AlexVonB
70ef9b6e48
added pre tag
...
closes #15
2021-05-21 14:15:41 +02:00
AlexVonB
91d53ddd5a
refactor simple inline conversions
2021-05-21 13:53:00 +02:00
AlexVonB
079f32f6cd
added del and s tags
2021-05-21 12:27:49 +02:00
AlexVonB
89b577e91e
ordering functions alphabetically
2021-05-21 12:21:21 +02:00
AlexVonB
77797ebb79
Merge branch 'andrewcrichards/add_code_samp_kbd_tags' of https://github.com/AndrewCRichards/python-markdownify into AndrewCRichards-andrewcrichards/add_code_samp_kbd_tags
2021-05-21 12:11:59 +02:00
AlexVonB
ea81407b87
implemented table parsing correctly
...
instead of manually walking down the dom tree
in a table, we now rely on the main descent loop
and just implement conversion for rows and cells
correctly. this enables the use of html inside a
table cell.
2021-05-17 14:00:00 +02:00
AlexVonB
e6da15c173
allow tables with headers in first (or any) column
2021-05-17 12:36:48 +02:00
AlexVonB
7dac92e85e
Allow for tables without header row
...
fixes #42
2021-05-16 19:02:04 +02:00
Jiulong Wang
ddfbf6a364
Keep important spaces in <li> element
2021-05-10 16:07:54 -07:00
Jiulong Wang
91a64e3cd4
Fix missing whitespaces in <li> node
2021-05-10 14:42:05 -07:00
AlexVonB
73800ced36
fixed whitespace issues at nested lists
2021-05-02 13:44:09 +02:00
AlexVonB
1538cacb94
Merge branch 'develop' into ordere-list-update
2021-05-02 10:58:13 +02:00
Jiulong Wang
5f102d5223
Add conversion for hr element
2021-04-29 13:41:28 -07:00
AlexVonB
96f7e7d307
Merge branch 'develop' into add-basic-support-for-tables
2021-04-22 12:40:16 +02:00
AlexVonB
e1dbbfad42
guard table lines with pipes, resolves the empty header problem
2021-04-22 12:36:11 +02:00
AlexVonB
b47d5f11c8
Merge pull request #37 from andredelft/develop
...
Add `strong_em_symbol` and `newline` options to the converter
2021-04-18 21:35:16 +02:00
André van Delft
29c794e17d
Introduce OPTIONs for strong_em_symbol
2021-04-18 18:13:29 +02:00
André van Delft
650f377b64
Fix linting
2021-04-05 11:13:19 +02:00
André van Delft
7ee87b1d32
Use .lower() on _style option fetching
2021-04-05 10:50:23 +02:00
André van Delft
c04ec855dd
Change option to newline_style and use variables like heading_style does
2021-04-05 10:44:20 +02:00
AlexVonB
f320cf87ff
closing #25 and #18
...
Adds newlines after blockquotes, allowing for paragraphs after a
blockquote.
Due to merging problems with @lucafrance 's code I had to quickly copy
and paste their code. Thanks for the contribution!
2021-02-21 20:53:44 +01:00
André van Delft
b3ac4606a6
Allow for the use of backslash for newlines
2021-02-15 16:29:14 +01:00
André van Delft
f093843f40
Allow for a custom strong or emphasis symbol
2021-02-15 16:19:19 +01:00
Bruno Miguens
de6f91af0e
Revert header validation and leave possibility to empty column
2021-02-08 20:56:18 +00:00
Bruno Miguens
8c28ade348
Remove empty header validation to allow empty header
2021-02-08 20:50:15 +00:00
Bruno Miguens
73f7644c0d
Add basic support for HTML tables
2021-02-08 17:00:09 +00:00
Bruno Miguens
321e9eb5f6
Add ignore comment tags
2021-02-05 19:40:43 +00:00
AlexVonB
97c78ef55b
Merge branch 'fix-extra-headline-whitespace' into develop
2021-01-12 22:38:59 +01:00
AlexVonB
453b604096
Fixing autolinks
...
When checking a links href and text for
equality, first un-escape the underscores
in the text -- because six escapes them.
This should fix #29 .
2021-01-02 17:22:36 +01:00
AlexVonB
4f8937810b
dont replace newlines and tabs with spaces
...
this should fix #17 , as all leading new lines
were replaced with a single space, which in turn
was rendered before the # of a headline
2020-12-29 10:28:50 +01:00
Igor Dvorkin
05ea8dc58a
Add many tests and support image tag
2020-12-13 17:40:53 +00:00
Igor Dvorkin
7780f82c30
Using a regexp to determine if a tag is a heading.
2020-12-11 16:54:14 -08:00
Andrew Richards
3354f143d8
Add method for <code> tag
...
Add method and tests for inline tag <code>.
2020-11-23 17:28:23 +00:00
Igor Dvorkin
d558617cd7
Add support for headings that include nested block elements
2020-11-20 06:03:51 -08:00
SimonIT
1b3136ad04
Fix parsing corrupt html
2020-08-31 13:15:10 +02:00
SimonIT
4f00d638d2
Merge remote-tracking branch 'upstream/develop' into ordered-list
...
# Conflicts:
# markdownify/__init__.py
# tests/test_conversions.py
2020-08-26 19:41:43 +02:00
SimonIT
ca98892953
Support the start attribute for ordered lists
2020-08-11 11:43:02 +02:00
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
Rémi
d23596706d
Remove debug prints
2019-11-22 11:49:22 +01:00
Rémi
7b788bafd4
Add nested OL test (for newlines) and correct lists nesting
2019-11-21 09:35:34 +01:00
Rémi
146104b41f
Remove newline-only textnodes outside <pre>
2019-11-20 10:37:39 +01: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