diff --git a/src/file_editor.rs b/src/file_editor.rs index d19eb70..9c3b829 100644 --- a/src/file_editor.rs +++ b/src/file_editor.rs @@ -12,7 +12,7 @@ use egui::{ use crate::{ custom_code_block::{MdItem, iter_lines_and_code_blocks}, - painting::{self, Handwriting, HandwritingStyle}, + handwriting::{self, Handwriting, HandwritingStyle}, preferences::Preferences, text_editor::MdTextEdit, }; @@ -287,7 +287,7 @@ impl From<&str> for FileEditor { match item { MdItem::Line(line) => push_text(buffer, line), MdItem::CodeBlock { key, content, span } => match key { - painting::CODE_BLOCK_KEY => match Handwriting::from_str(span) { + handwriting::CODE_BLOCK_KEY => match Handwriting::from_str(span) { Ok(handwriting) => { if let Some(BufferItem::Text(text_edit)) = buffer.last_mut() { if text_edit.text.ends_with('\n') { diff --git a/src/painting.rs b/src/handwriting.rs similarity index 100% rename from src/painting.rs rename to src/handwriting.rs diff --git a/src/lib.rs b/src/lib.rs index 38ec018..491b59d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,7 +5,7 @@ pub mod constants; pub mod custom_code_block; pub mod easy_mark; pub mod file_editor; -pub mod painting; +pub mod handwriting; pub mod preferences; pub mod rasterizer; pub mod text_editor;