Skip to content

Commit 2c96e80

Browse files
committed
fix #231; double braces cannot be escape (temporary fix)
1 parent 01de237 commit 2c96e80

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.15.4] - 2025-04-19
8+
### Fixed
9+
- #231; double braces cannot be escape (only temporary fix)
10+
711
## [0.15.3] - 2025-03-28
812
### Changed
913
- #221; Specify tooling used in package.json

frontend/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "note-mark-frontend",
3-
"version": "0.15.3",
3+
"version": "0.15.4",
44
"description": "",
55
"private": true,
66
"license": "AGPL-3.0-only",

frontend/renderer/src/lib.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ impl Renderer {
5959

6060
#[wasm_bindgen]
6161
pub fn parse_templated_markdown(&self, raw: &str, context: Context) -> Option<String> {
62-
let template = self.template_parser.parse(raw).unwrap();
63-
let globals = liquid::to_object(&context).ok()?;
64-
template.render(&globals).ok()
62+
// HACK temporary fix to solve issue #231; double braces not escaping
63+
//let template = self.template_parser.parse(raw).unwrap();
64+
//let globals = liquid::to_object(&context).ok()?;
65+
//template.render(&globals).ok()
66+
return Some(raw.to_owned());
6567
}
6668

6769
#[wasm_bindgen]

site/hugo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ url = "https://www.buymeacoffee.com/leospratt"
3131
icon = "coffee"
3232

3333
[params]
34-
appVersion = "0.15.3"
34+
appVersion = "0.15.4"
3535

3636
[[params.favicon]]
3737
href = "/icon.svg"

0 commit comments

Comments
 (0)