Wordpress 标签';头>;样式[amp样板文件]';缺少或不正确

Wordpress 标签';头>;样式[amp样板文件]';缺少或不正确,wordpress,mobile,amp-html,Wordpress,Mobile,Amp Html,为什么我会收到这个错误?我使用wordpress和Automatic AMP插件 标签“head>style[amp-boilerplate]”中的必填文本(CDATA)缺失或不正确。强制\u AMP\u标签\u缺失\u或\u不正确 第1行第473列 标记“noscript>style[amp-boilerplate]”中的必填文本(CDATA)缺失或不正确。强制\u AMP\u标签\u缺失\u或\u不正确 第10行第19栏 <!doctype html><html amp l

为什么我会收到这个错误?我使用wordpress和Automatic AMP插件

标签“head>style[amp-boilerplate]”中的必填文本(CDATA)缺失或不正确。强制\u AMP\u标签\u缺失\u或\u不正确 第1行第473列

标记“noscript>style[amp-boilerplate]”中的必填文本(CDATA)缺失或不正确。强制\u AMP\u标签\u缺失\u或\u不正确 第10行第19栏

<!doctype html><html amp lang="tr-TR"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"><title>Example</title><link rel="canonical" href="http://www.example.com/okul-kombinleri/" /> <script src="https://cdn.ampproject.org/v0.js" async></script> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Merriweather:400,400italic,700,700italic"><style amp-boilerplate>body {
-webkit-animation:0 8s steps(1,end) 0 1 normal both;
-moz-animation:0 8s steps(1,end) 0 1 normal both;
-ms-animation:0 8s steps(1,end) 0 1 normal both;
animation:0 8s steps(1,end) 0 1 normal both;
}

to {
visibility:visible;
}</style><noscript><style amp-boilerplate>body {
-webkit-animation:none;
-moz-animation:none;
-ms-animation:none;
animation:none;
}</style></noscript> 
示例正文{
-webkit动画:0 8步(1,结束)0 1正常两个;
-moz动画:0 8s步数(1,结束)0 1正常两者;
-ms动画:0 8s步数(1,结束)0 1正常两个;
动画:0 8s步数(1,结束)0 1正常两个;
}
到{
能见度:可见;
}身体{
-webkit动画:无;
-moz动画:无;
-ms动画:无;
动画:无;
} 

根据AMP HTML规范,我认为您需要从AMP样板代码中删除所有新行,因为它是用正则表达式(regex)验证的,所以所有新行都被读取为“\n”,从而导致错误

直接从文档中获取

AMP样板代码('head>style[AMP-Boilerplate]”和'noscript>style[AMP-Boilerplate]”)

AMP HTML文档的head标记中必须包含以下样板文件。目前验证是用正则表达式完成的,因此尽可能减少突变非常重要。目前,允许的突变有:(1)在样式标记打开后和关闭前立即插入任意空格;(2) 用任意空格替换下面代码段中的任何空格

可能存在的副本