use crate::parse::{EmbedRule, Platform}; use crate::Category; pub struct Codesandbox; impl Platform for Codesandbox { fn id(&self) -> &'static str { "codesandbox" } fn name(&self) -> &'static str { "CodeSandbox" } fn category(&self) -> Category { Category::Dev } fn domains(&self) -> &'static [&'static str] { &["codesandbox.io"] } fn embed_rule(&self) -> Option { Some(EmbedRule::frame("https://codesandbox.io/embed{path}")) } } pub static PLATFORM: Codesandbox = Codesandbox;