Last active
May 15, 2020 13:17
-
-
Save skflowne/311faa905b8c757b6388d3ae8bf38b68 to your computer and use it in GitHub Desktop.
Test for medium embed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( | |
ast.html && | |
ast.html.children && | |
ast.html.children[1] && | |
ast.html.children[1].children && | |
ast.html.children[1].children[3] && | |
ast.html.children[1].children[3].attributes | |
) { | |
console.log( | |
"main children", | |
ast.html.children[1].children[3].attributes[0] | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment