Skip to content

Commit

Permalink
Add Hayagriva
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxwellBo committed Dec 22, 2024
1 parent 681c648 commit e317480
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bibhtml/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@celine/bibhtml",
"version": "3.0.3",
"version": "3.1.3",
"license": "MIT",
"exports": "./mod.ts"
}
32 changes: 32 additions & 0 deletions bibhtml/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,23 @@ <h4>Wikidata</h4>
This expands to reference <bh-cite><a href="#patashnik2007">[?]</a></bh-cite>, and is backed by <a href="https://www.npmjs.com/package/@citation-js/plugin-wikidata">@citation-js/plugin-wikidata</a>.
</p>


<h4>Hayagriva (Typst)</h4>

<p>
<a href="https://typst.app/docs/reference/model/bibliography/">https://github.com/typst/hayagriva/blob/main/docs/file-format.md</a> is a new bibliography file format designed for use with <a href="https://typst.app/">Typst</a>.
</p>


<script id="hayagriva-cell" type="module">
celine.cell("hayagriva-cell", () => {
const reference = document.getElementById('dependence');
return htl.html`<pre class='echo dark'>${reference.outerHTML}</pre>`
})
</script>

This expands to reference <bh-cite><a href="#dependence">[?]</a></bh-cite>, and is backed by <a href="https://www.npmjs.com/package/@citation-js/plugin-hayagriva">@citation-js/plugin-hayagriva</a>.

<h3><code>&lt;bh-bibliography&gt;</code></h3>

<p>
Expand Down Expand Up @@ -507,6 +524,21 @@ <h2 id="references">References</h2>
note = {Blog post discussing the advantages of using Light DOM over Shadow DOM in web components}
}
</bh-reference>

<bh-reference id="dependence">
dependence:
type: Article
title: The program dependence graph and its use in optimization
author: ["Ferrante, Jeanne", "Ottenstein, Karl J.", "Warren, Joe D."]
date: 1987-07
serial-number:
doi: "10.1145/24039.24041"
parent:
type: Periodical
title: ACM Transactions on Programming Languages and Systems
volume: 9
issue: 3
</bh-reference>
<bh-reference id="jacobs2018house">
Jacobs, J., Mervosh, S., & Stevens, M. (2018, November 7). When the House and the Senate are controlled by different parties, who wins? The New York Times. Retrieved from https://www.nytimes.com/2018/11/07/us/politics/house-senate-difference-control.html
</bh-reference>
Expand Down
1 change: 1 addition & 0 deletions bibhtml/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'npm:@citation-js/[email protected]'
import 'npm:@citation-js/[email protected]'
import 'npm:@citation-js/[email protected]'
import 'npm:@citation-js/[email protected]'
import 'npm:@citation-js/[email protected]'

function alphabetize(n: number): string {
const alphabet = "abcdefghijklmnopqrstuvwxyz".split("");
Expand Down
49 changes: 49 additions & 0 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e317480

Please sign in to comment.