Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable_paragraphs option not working as intended #1

Open
andredelft opened this issue Jul 28, 2021 · 0 comments
Open

enable_paragraphs option not working as intended #1

andredelft opened this issue Jul 28, 2021 · 0 comments

Comments

@andredelft
Copy link
Owner

When enabling paragraphs, the following unwanted behaviour is occuring:

>>> leiden_plus('<= Leiden+ section =>', enable_paragraphs=True)
'<ab><p>Leiden+ section </p></ab>'

This should just be <ab>Leiden+ section</ab>.

The problem is that <= and => are formatted as different blocks using preprocessors, and stitched together using postprocessors, rendering the text content as a single paragraph in between by the regular markdown paragraph processor. It's probably better to use a mechanism where <= ... => and <D= ... =D> are interpreted as separate blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant