Skip to content

Commit

Permalink
added a page to track broken features
Browse files Browse the repository at this point in the history
  • Loading branch information
SaswatPadhi committed Jun 12, 2023
1 parent 45311dc commit 3276755
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
58 changes: 58 additions & 0 deletions docs/broken.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
### Partial / Invalid BibLaTeX Examples

- PrismJS version: 1.19.0
- PrismJS theme: okaidia


#### Example from [Issue #3]

```bib
@article{newpaper,
title={
@article{existing,
title={my old title}
}
```

Previously led to browser being stuck on an infinite loop.

#### Unsupported Nesting Depth

```bib
@article{nestingbelowlevel4,
title={ l1 { l2 } l1 }
}
@article{nestingatlevel4,
title={
l1 {
l2 {
l3 { l4 } l3
} l2
} l1
}
}
@article{nestingabovelevel4,
title={
l1 { l2 { l3 { l4 {
l5
} l4 } l3 } l2 } l1
}
}
```

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.19.0/themes/prism-okaidia.min.css"
integrity="sha512-pGi87NmT0VeSbmZBK40y3wF4H2DlpCYc5lrO/3F/RPhnwn262NReW3jFtG2iZWhbpoWT5MDzBzawpOri+jcUTw==" crossorigin="anonymous" />


<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.19.0/prism.min.js"
integrity="sha512-9ndS8HgVHWQq2A/kpIxygbIZQ7oljc9/AvoEv8SQDy192nAuCGSdk7OdAfCZLDkbRJLZMsrV0NXycMSLLNTWCw==" crossorigin="anonymous">
</script>

<script src="https://cdn.jsdelivr.net/npm/[email protected]/prism-bibtex.js"
integrity="sha256-+dK6uqUp/DnP6ef97s8XcoynBnGe5vM5gvBECH0EB3U=" crossorigin="anonymous">
</script>

[Issue #3]: https://github.com/SaswatPadhi/prismjs-bibtex/issues/3
2 changes: 2 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ For example, in the `head` of you HTML document, you can add the following:
## Small Examples

Below, I show the syntax-highlighting results for some tricky BibTeX files I found on the internet.

Please report bugs (or, open a PR) if you notice an incorrect highlighting.
You may find some examples of currently broken / unsupported features on [this page](broken.html).

### Snippets from [DBLP]

Expand Down

0 comments on commit 3276755

Please sign in to comment.