[#2] Just removing unneeded functions.
This commit is contained in:
@ -1,5 +1,3 @@
|
|||||||
//use std::io::Write;
|
|
||||||
|
|
||||||
use pulldown_cmark::{html, Parser};
|
use pulldown_cmark::{html, Parser};
|
||||||
|
|
||||||
|
|
||||||
@ -9,21 +7,6 @@ pub enum Converter {}
|
|||||||
|
|
||||||
impl Converter
|
impl Converter
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
/// Public function to handle file-to-file conversion
|
|
||||||
pub fn md_to_html(markdown_path: &std::path::Path,
|
|
||||||
html_path: &std::path::Path)
|
|
||||||
-> std::io::Result<()>
|
|
||||||
{
|
|
||||||
let markdown_content = std::fs::read_to_string(markdown_path)?;
|
|
||||||
let html_output = Self::markdown_to_html(&markdown_content);
|
|
||||||
let mut html_file = std::fs::File::create(html_path)?;
|
|
||||||
|
|
||||||
html_file.write_all(html_output.as_bytes())?;
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/// Private function to handle the core conversion logic
|
/// Private function to handle the core conversion logic
|
||||||
pub fn markdown_to_html(markdown_content: &str) -> String
|
pub fn markdown_to_html(markdown_content: &str) -> String
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user