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

pb-code-highlight strips parts of the markup #60

Open
tuurma opened this issue Feb 9, 2021 · 1 comment
Open

pb-code-highlight strips parts of the markup #60

tuurma opened this issue Feb 9, 2021 · 1 comment

Comments

@tuurma
Copy link
Member

tuurma commented Feb 9, 2021

for source like below, the head element is stripped by pb-code-highlight, only it's text content remains. Sibling p elements are not affected

<pb-code-highlight language="xml" theme="solarizedlight" class="tei-ex_egXML1 example">

  <template>
  <head>SARAJEVO, Bosnia and Herzegovina, April 19</head>
  <p>Serbs seized more territory in this struggling new country today as
  the United States Air Force ended a two-day airlift of humanitarian
  aid into the capital, Sarajevo.</p>
  <p>International relief workers called on European Community nations
  to step up their humanitarian aid to the former Yugoslav republic,
  in conjunction with new American aid flights if necessary.</p>
  <p>A special envoy from the European Community, Colin Doyle, harshly
  condemned the decision by Serbs to shell Sarajevo on Saturday night
  during a visit to the Bosnian capital by a senior American official,
  Deputy Assistant Secretary of State Ralph R. Johnson.</p>
  <p>...</p>
  </template>
  </pb-code-highlight>

image

@Bpolitycki
Copy link

This is not a problem of the tei-publisher-components lib. According to MDN just specific content categories are allowed inside a template-tag. See: https://developer.mozilla.org/de/docs/Web/HTML/Element/template

Maybe you could use a header instead?

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

2 participants