Skip to content

Commit

Permalink
core: enable useful features like header ids
Browse files Browse the repository at this point in the history
  • Loading branch information
leostera committed Nov 6, 2020
1 parent d65529f commit e7f5b23
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 11 deletions.
20 changes: 17 additions & 3 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "hotstuff"
description = "A composable, turnkey document compiler"
version = "0.1.10"
version = "0.1.12"
authors = ["Leandro Ostera <leandro@ostera.io>"]
edition = "2018"
homepage = "https://github.com/AbstractMachinesLab/hotstuff"
Expand All @@ -16,7 +16,7 @@ exclude = [

[dependencies]
chrono = "0.4"
comrak = "0.8"
comrak = "0.9"
fern = { version = "0.6", features = [ "colored" ] }
http = "0.2"
hyper = "0.13"
Expand Down
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,5 @@ hotstuff is inspired by prior art:
* the `bazel` build system, with its aggressive incremental compilation
techniques

If you'd like to support this project consider doing so on Patreon:

<a href="https://www.patreon.com/AbstractMachines">
<img alt="Become a Patron" src="https://c5.patreon.com/external/logo/become_a_patron_button.png" width="150px" />
</a>
If you'd like to support this project you can [sponsor us on
Github](https://github.com/sponsors/AbstractMachinesLab).
2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@abstractmachines/hotstuff",
"version": "0.1.10",
"version": "0.1.11",
"description": "A composable, turnkey document compiler",
"bin": {
"hotstuff": "./hotstuff"
Expand Down
2 changes: 2 additions & 0 deletions src/browser_reloader.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<script>
console.log(`
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██████░██ █▀▄▄▀█▄░▄███░▄▄█▄░▄█░██░█░▄▄█░▄▄██████
Expand Down Expand Up @@ -50,3 +51,4 @@ let wait_for_changes = () => {
};

wait_for_changes();
</script>
4 changes: 4 additions & 0 deletions src/build_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ pub fn compile_unit(cunit: CompilationUnit) -> Result<Artifact, impl std::error:
let ext = input.extension().and_then(OsStr::to_str).unwrap_or("");
let mut opts = comrak::ComrakOptions::default();
opts.render.unsafe_ = true;
opts.parse.smart = true;
opts.extension.autolink = true;
opts.extension.header_ids = Some("".to_string());
opts.extension.footnotes = true;
let compiled = match ext {
"md" => comrak::markdown_to_html(&raw, &opts),
_ => raw,
Expand Down

0 comments on commit e7f5b23

Please sign in to comment.