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

Do not process <head> and style #331

Open
RolfBly opened this issue Aug 8, 2019 · 0 comments
Open

Do not process <head> and style #331

RolfBly opened this issue Aug 8, 2019 · 0 comments
Labels

Comments

@RolfBly
Copy link

RolfBly commented Aug 8, 2019

Before converting, I put small head and style snippets in the first line of the document, like this:

<head>meta charset="UTF-8"></head><style>body {margin-left: 1.25cm; margin-top: 1cm;}</style>

Converted to html, this becomes:

<p><head>meta charset="UTF-8"></head><style>body {margin-left: 1.25cm; margin-top: 1cm;}</style></p>

The paragraph contents is rendered blank, so that's OK, but the <p> tags shouldn't be there. Is there any way to tell markdown2.py to not process head or style sections? (Without digging into & modifying the code, that is.) I've found I can put the head and style inside a <div>, but I don't want that either.

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

No branches or pull requests

2 participants