temporary disable video parser
This commit is contained in:
@@ -69,6 +69,7 @@ impl RenderedText {
|
|||||||
|
|
||||||
pub fn element(&self, id: ElementId, window: &Window, cx: &App) -> AnyElement {
|
pub fn element(&self, id: ElementId, window: &Window, cx: &App) -> AnyElement {
|
||||||
let code_background = cx.theme().elevated_surface_background;
|
let code_background = cx.theme().elevated_surface_background;
|
||||||
|
let color = cx.theme().text_accent;
|
||||||
|
|
||||||
InteractiveText::new(
|
InteractiveText::new(
|
||||||
id,
|
id,
|
||||||
@@ -100,6 +101,7 @@ impl RenderedText {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Highlight::Mention => HighlightStyle {
|
Highlight::Mention => HighlightStyle {
|
||||||
|
color: Some(color),
|
||||||
underline: Some(UnderlineStyle {
|
underline: Some(UnderlineStyle {
|
||||||
thickness: 1.0.into(),
|
thickness: 1.0.into(),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
|||||||
@@ -33,9 +33,9 @@ impl MediaExtractor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Extract video URLs
|
// Extract video URLs
|
||||||
for capture in self.video_regex.find_iter(text) {
|
// for capture in self.video_regex.find_iter(text) {
|
||||||
urls.push(capture.as_str().to_string().into());
|
// urls.push(capture.as_str().to_string().into());
|
||||||
}
|
// }
|
||||||
|
|
||||||
urls
|
urls
|
||||||
}
|
}
|
||||||
@@ -48,7 +48,7 @@ impl MediaExtractor {
|
|||||||
result = self.image_regex.replace_all(&result, "").to_string();
|
result = self.image_regex.replace_all(&result, "").to_string();
|
||||||
|
|
||||||
// Remove video URLs
|
// Remove video URLs
|
||||||
result = self.video_regex.replace_all(&result, "").to_string();
|
// result = self.video_regex.replace_all(&result, "").to_string();
|
||||||
|
|
||||||
// Clean up extra whitespace that might result from removal
|
// Clean up extra whitespace that might result from removal
|
||||||
self.cleanup_text(&result)
|
self.cleanup_text(&result)
|
||||||
|
|||||||
Reference in New Issue
Block a user