Rename painting module to handwriting

This commit is contained in:
2025-06-15 12:53:23 +02:00
parent 1df81509df
commit 5ca9dfabb8
3 changed files with 3 additions and 3 deletions

View File

@ -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') {