mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-14 23:02:34 +00:00
Added MathJax support does not work 100% but it's better than nothing #49
This commit is contained in:
parent
82a774c90e
commit
6962731474
2 changed files with 2 additions and 11 deletions
|
@ -3,16 +3,6 @@ use std::fs::File;
|
||||||
use std::io::{Read, Result, Error, ErrorKind};
|
use std::io::{Read, Result, Error, ErrorKind};
|
||||||
use book::bookitem::BookItem;
|
use book::bookitem::BookItem;
|
||||||
|
|
||||||
/*
|
|
||||||
pub enum LineType {
|
|
||||||
Blank,
|
|
||||||
Header,
|
|
||||||
Link(String, PathBuf), // Name, Path
|
|
||||||
ListItem(String, PathBuf, i32), // Name, Path, Level
|
|
||||||
Other,
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
pub fn construct_bookitems(path: &PathBuf) -> Result<Vec<BookItem>> {
|
pub fn construct_bookitems(path: &PathBuf) -> Result<Vec<BookItem>> {
|
||||||
debug!("[fn]: construct_bookitems");
|
debug!("[fn]: construct_bookitems");
|
||||||
let mut summary = String::new();
|
let mut summary = String::new();
|
||||||
|
|
|
@ -14,7 +14,8 @@
|
||||||
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
|
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
|
||||||
<link rel="stylesheet" href="highlight.css">
|
<link rel="stylesheet" href="highlight.css">
|
||||||
|
|
||||||
|
<!-- MathJax -->
|
||||||
|
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue