feat: write quarto assignment with encryption

This commit is contained in:
2026-08-10 03:25:15 -04:00
parent 327ac371e4
commit 1cc8137be9
15 changed files with 1678 additions and 53 deletions
+2 -2
View File
@@ -199,7 +199,7 @@ pub fn escape_html(s: &str) -> String {
/// # Returns
///
/// The substituted text.
fn apply_symbols(s: &str, html: bool) -> String {
pub(crate) fn apply_symbols(s: &str, html: bool) -> String {
let mut out = s.to_string();
for (token, entity, plain) in SYMBOLS {
if out.contains(token) {
@@ -218,7 +218,7 @@ fn apply_symbols(s: &str, html: bool) -> String {
/// # Returns
///
/// The text with inline markup converted.
fn apply_inline(s: &str) -> String {
pub(crate) fn apply_inline(s: &str) -> String {
let mut out = s.to_string();
// Bracketed forms first: their contents may contain other markup characters.
out = wrap_bracket(&out, "#sub[", "<sub>", "</sub>");