Skip to main content

devpage_core/render/
mod.rs

1//! Markdown to a full page: the rendered file inside the document's frame.
2
3mod frame;
4mod markdown;
5mod sidebar;
6
7pub use crate::markup::title;
8pub use frame::{doc, html_open, invalid, page, slides, tab_title};
9pub(crate) use markdown::options;
10pub use markdown::{FRAME_IDS, front_matter, markdown, markdown_in};
11
12pub fn escape(text: &str) -> String {
13    text.replace('&', "&")
14        .replace('<', "&lt;")
15        .replace('>', "&gt;")
16        .replace('"', "&quot;")
17}
18
19#[cfg(test)]
20mod tests;