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

EAD handler should handle mixed content in <p> #55

Open
bencomp opened this issue Oct 13, 2014 · 1 comment
Open

EAD handler should handle mixed content in <p> #55

bencomp opened this issue Oct 13, 2014 · 1 comment
Labels

Comments

@bencomp
Copy link
Contributor

bencomp commented Oct 13, 2014

Many CHIs use either <p>content</p> or <p><emph>content</emph></p> in elements like <bioghist> and <scopecontent>. Some, however, use mixed content, such as

<p>Content <emph>more content</emph> and then some more.</p>

If we mark both /p/ and /p/emph/ as 'include', we end up with a list with the content of <emph> first. If we only mark /p/ as 'include', the content of <emph> is lost.

The parser should support this mixed content and transform elements to what we want when it encounters them. (The ugly solution is to convert mixed content to Markdown equivalents before parsing, which is what I'll do for now.)

@bencomp bencomp added the bug label Oct 13, 2014
@bencomp
Copy link
Contributor Author

bencomp commented Oct 13, 2014

The same applies to <extref> inside <accessrestrict>.

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

1 participant