Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb3b5f03

Browse files
authored
Cleaned up markdown.rs (#1345)
1 parent6ba605d commitb3b5f03

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

‎pgml-dashboard/src/utils/markdown.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
usecrate::api::cms::{DocType,Document};
22
usecrate::{templates::docs::TocLink, utils::config};
33
use anyhow::Context;
4-
use comrak::{format_html_with_plugins, parse_document,ComrakPlugins};
54
use std::cell::RefCell;
65
use std::collections::HashMap;
76
use std::path::PathBuf;
@@ -17,7 +16,6 @@ use comrak::{
1716
use convert_case;
1817
use itertools::Itertools;
1918
use regex::Regex;
20-
use serde::Deserialize;
2119
use std::fmt;
2220
use std::sync::Mutex;
2321
use url::Url;
@@ -1221,13 +1219,6 @@ pub async fn get_document(path: &PathBuf) -> anyhow::Result<String> {
12211219
Ok(tokio::fs::read_to_string(path).await?)
12221220
}
12231221

1224-
#[derive(Deserialize)]
1225-
structSearchResultWithoutSnippet{
1226-
title:String,
1227-
contents:String,
1228-
path:String,
1229-
}
1230-
12311222
pubstructSearchResult{
12321223
pubtitle:String,
12331224
pubpath:String,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp