pelican/pelican/tests
Martin (mart-e) 219c01afb0 [IMP] pelican_import with gmf instead of markdown
The markdown import of pandoc is their own flavour of markdown. It for
instance uses fenced divs[1] which are not supported by
python-markdown.  When importing content from Wordpress, there is
several issues as explained in discussion 3113[2]
This change follows a discussion with pandoc developer[3]

[1] https://pandoc.org/MANUAL.html#divs-and-spans
[2] https://github.com/getpelican/pelican/discussions/3113
[3] https://fosstodon.org/@pandoc/110105559949588768

Take the following Wordpress blog post sample:
```html
<p><!-- wp:paragraph --></p>
<p>Paragraph content</p>
<p><!-- /wp:paragraph --></p>
<p><!-- wp:image {"align":"center","id":3747,"sizeSlug":"full"} --></p>
<div class="wp-block-image">
<figure class="aligncenter size-full"><img src="https://test.com/test.jpg" alt="" class="wp-image-3747" title="Some title"/><br />
<figcaption><em>Some caption</em></figcaption>
</figure>
</div>
<p><!-- /wp:image --></p>
```
Before this commit:
was imported as

```md
`<!-- wp:paragraph -->`{=html}

Paragraph content

`<!-- /wp:paragraph -->`{=html}

`<!-- wp:image {"align":"center","id":3747,"sizeSlug":"full"} -->`{=html}

::: wp-block-image
<figure class="aligncenter size-full">
<img src="https://test.com/test.jpg" title="Some title"
class="wp-image-3747" /><br />

<figcaption><em>Some caption</em></figcaption>
</figure>
:::

`<!-- /wp:image -->`{=html}
```

After this change:
```md
<!-- wp:paragraph -->

Paragraph content

<!-- /wp:paragraph -->

<!-- wp:image {"align":"center","id":3747,"sizeSlug":"full"} -->

<div class="wp-block-image">

<figure class="aligncenter size-full">
<img src="https://test.com/test.jpg" title="Some title"
class="wp-image-3747" /><br />

<figcaption><em>Some caption</em></figcaption>
</figure>

</div>

<!-- /wp:image -->
```

Fixes #3113
2023-03-29 14:07:23 +02:00
..
content Ensure _DISCARDED is not being cached. Fix #2825 (#2926) 2021-10-06 10:19:17 +02:00
cyclic_intersite_links Add a test for false-positive warnings about intersite links. 2018-11-11 01:18:53 +01:00
dummy_plugins Stringify plugin definitions so they can be pickled during caching (#2835) 2021-01-04 17:13:32 +01:00
mixed_content Make StaticGenerator skip content sources. Refs #1019. 2014-10-31 16:46:01 -07:00
nested_content/maindir Make PAGE_EXCLUDES work with subdirs. Fixes #1500. 2014-11-01 17:38:20 -07:00
output Add categories.html template to default theme 2022-02-01 11:07:23 -07:00
parse_error Add tests verifying graceful handling on reST errors. 2018-11-10 23:08:10 +01:00
TestPages automatically copy linked static files 2018-11-01 18:08:11 +01:00
theme_overrides Add THEME_TEMPLATE_OVERRIDES. Refs 2021 2017-10-10 14:33:20 +08:00
__init__.py docs: Fix a few typos 2022-07-24 07:55:18 +10:00
default_conf.py Modernize code base to Python 3+ syntax 2020-04-27 09:45:31 +02:00
support.py fix linting errors 2020-05-12 23:30:03 +03:00
test_cache.py Cleanup test environment and requirements 2020-05-09 16:17:14 +03:00
test_cli.py Add failing tests 2022-02-09 06:05:50 -07:00
test_contents.py Add content tag static expansion 2022-04-28 19:53:03 -07:00
test_generators.py Ensure _DISCARDED is not being cached. Fix #2825 (#2926) 2021-10-06 10:19:17 +02:00
test_importer.py [IMP] pelican_import with gmf instead of markdown 2023-03-29 14:07:23 +02:00
test_log.py Remove log format test 2021-06-30 23:29:20 -06:00
test_paginator.py Support last page pattern in PAGINATION_PATTERNS 2021-01-13 11:19:36 +01:00
test_pelican.py Use --no-pager option rather than override all environment variables 2021-10-08 18:47:40 +11:00
test_plugins.py Stringify plugin definitions so they can be pickled during caching (#2835) 2021-01-04 17:13:32 +01:00
test_readers.py Ensure _DISCARDED is not being cached. Fix #2825 (#2926) 2021-10-06 10:19:17 +02:00
test_rstdirectives.py Cleanup test environment and requirements 2020-05-09 16:17:14 +03:00
test_server.py Adjust suffix in server to allow redirection when needed 2021-10-05 01:44:12 +03:00
test_settings.py update unit test to avoid using deprecated locale.getdefaultlocale() 2022-10-26 23:52:38 +03:00
test_testsuite.py Modernize code base to Python 3+ syntax 2020-04-27 09:45:31 +02:00
test_urlwrappers.py Modernize code base to Python 3+ syntax 2020-04-27 09:45:31 +02:00
test_utils.py Use tmp dir for test output 2022-09-16 22:59:54 -07:00