|
|
|
@ -18,9 +18,9 @@ export const MediumExtractor = {
|
|
|
|
|
// Allow drop cap character.
|
|
|
|
|
'section span:first-of-type': $node => {
|
|
|
|
|
const $text = $node.html();
|
|
|
|
|
if ($text.length === 1) return 'span';
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
if ($text.length === 1 && /^[a-zA-Z()]+$/.test($text)) {
|
|
|
|
|
$node.replaceWith($text);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// Re-write lazy-loaded youtube videos
|
|
|
|
|
iframe: $node => {
|
|
|
|
@ -62,7 +62,7 @@ export const MediumExtractor = {
|
|
|
|
|
// Is there anything that is in the result that shouldn't be?
|
|
|
|
|
// The clean selectors will remove anything that matches from
|
|
|
|
|
// the result
|
|
|
|
|
clean: ['svg'],
|
|
|
|
|
clean: ['span a', 'svg'],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
date_published: {
|
|
|
|
|