Moved playpen.rs `renderer` helper to `preprocess/links.rs` module
This commit is contained in:
parent
c482650e56
commit
f3f6b40ea9
|
@ -86,6 +86,7 @@ extern crate log;
|
||||||
pub mod book;
|
pub mod book;
|
||||||
pub mod config;
|
pub mod config;
|
||||||
mod parse;
|
mod parse;
|
||||||
|
mod preprocess;
|
||||||
pub mod renderer;
|
pub mod renderer;
|
||||||
pub mod theme;
|
pub mod theme;
|
||||||
pub mod utils;
|
pub mod utils;
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
pub mod links;
|
|
@ -1,4 +1,5 @@
|
||||||
use renderer::html_handlebars::helpers;
|
use renderer::html_handlebars::helpers;
|
||||||
|
use preprocess;
|
||||||
use renderer::Renderer;
|
use renderer::Renderer;
|
||||||
use book::MDBook;
|
use book::MDBook;
|
||||||
use book::bookitem::{BookItem, Chapter};
|
use book::bookitem::{BookItem, Chapter};
|
||||||
|
@ -46,7 +47,7 @@ impl HtmlHandlebars {
|
||||||
|
|
||||||
// Parse for playpen links
|
// Parse for playpen links
|
||||||
if let Some(p) = path.parent() {
|
if let Some(p) = path.parent() {
|
||||||
content = helpers::playpen::render_playpen(&content, p);
|
content = preprocess::links::render_playpen(&content, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
content = utils::render_markdown(&content, ctx.book.get_curly_quotes());
|
content = utils::render_markdown(&content, ctx.book.get_curly_quotes());
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
pub mod navigation;
|
pub mod navigation;
|
||||||
pub mod toc;
|
pub mod toc;
|
||||||
pub mod playpen;
|
|
||||||
|
|
Loading…
Reference in New Issue