extern crate html2md; use html2md::parse_html; use pretty_assertions::assert_eq; #[test] fn test_youtube_simple() { let md = parse_html(""); assert_eq!(md, "[![Embedded YouTube video](https://img.youtube.com/vi/zE-dmXZp3nU/0.jpg)](https://www.youtube.com/watch?v=zE-dmXZp3nU)") } #[test] fn test_instagram_simple() { let md = parse_html(""); assert_eq!(md, "[![Embedded Instagram post](https://www.instagram.com/p/B1BKr9Wo8YX/media/?size=m)](https://www.instagram.com/p/B1BKr9Wo8YX/embed/)") } #[test] fn test_vkontakte_simple() { let md = parse_html(""); assert_eq!(md, "[![Embedded VK video](https://st.vk.com/images/icons/video_empty_2x.png)](https://vk.com/video-76477496_456239454)") }