pkra / laml

a lame joke about LaTeX and HTML
https://pkra.github.io/laml/
2 stars 1 forks source link

YAML metadata #6

Closed pkra closed 6 years ago

pkra commented 6 years ago

Figure out YAML metadata as a more humane alternative to json.

pkra commented 6 years ago

A first example

<script type="text/yaml">
title: "Category, measure, and forcing, Math 522 lecture notes, Fall, 2014",
authors:
  - name: "Samuel Coskey"
    address: "Boise State"
  - name: "Erik Holmes"
    address: "Boise State"
date: "2018-02-04",
keywords: ["category", "measure", "forcing"],
license: "By special permission of the authors",
source: "https://github.com/scoskey/m522/commit/179e0daffd3b12264eafc7c7de6ff37c7d230375"

laml:
  - statements:
    - thm:
       fullName: theorem
       counter: arabic
       reset: section
</script>

Then use e.g. https://github.com/nodeca/js-yaml to parse.

Leverage laml section to configure statements module.

pkra commented 6 years ago

I think I have the basics for this approach figured out. Let's talk next time.

pkra commented 6 years ago

Finished for now.