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

Cleaned up markdown.rs#1345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
SilasMarvin merged 2 commits intomasterfromsilas-cleanup
Mar 1, 2024
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletionspgml-dashboard/src/utils/markdown.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
use crate::api::cms::{DocType, Document};
use crate::{templates::docs::TocLink, utils::config};
use anyhow::Context;
use comrak::{format_html_with_plugins, parse_document, ComrakPlugins};
use std::cell::RefCell;
use std::collections::HashMap;
use std::path::PathBuf;
Expand All@@ -17,7 +16,6 @@ use comrak::{
use convert_case;
use itertools::Itertools;
use regex::Regex;
use serde::Deserialize;
use std::fmt;
use std::sync::Mutex;
use url::Url;
Expand DownExpand Up@@ -1221,13 +1219,6 @@ pub async fn get_document(path: &PathBuf) -> anyhow::Result<String> {
Ok(tokio::fs::read_to_string(path).await?)
}

#[derive(Deserialize)]
struct SearchResultWithoutSnippet {
title: String,
contents: String,
path: String,
}

pub struct SearchResult {
pub title: String,
pub path: String,
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp