{"id":212015,"date":"2014-02-10T09:28:03","date_gmt":"2014-02-10T05:28:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=212015"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=212015","title":{"rendered":"<span class=\"post_title\">\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0442\u0435\u0433 Markdown \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Polymer\/Web Components<\/span>"},"content":{"rendered":"<div class=\"content html_format\">       <font color=\"gray\"> \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0445\u043e\u0440\u043e\u0448\u0438\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u043f\u043e web-components, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0441 <a href=\"http:\/\/habrahabr.ru\/users\/filipovskii_off\/\" class=\"user_link\">filipovskii_off<\/a> \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u044d\u0442\u0443 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e. <\/font><\/p>\n<p>  \u042d\u0445\u2026 <font color=\"green\">Markdown<\/font>\u2026 \u041e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u0448\u0442\u0443\u043a\u0430! \u042f, \u0447\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u043d\u0435 \u043f\u0438\u0441\u0430\u043b \u0431\u044b \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442, \u0435\u0441\u043b\u0438 \u0431\u044b \u043d\u0435 <font color=\"green\">Markdown<\/font>. \u041c\u043d\u043e\u0433\u043e \u0440\u0430\u0437 \u044f \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043d\u0430\u0447\u0430\u0442\u044c \u0431\u043b\u043e\u0433, \u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043d\u0430\u0445\u043e\u0434\u0438\u043b \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u043c, \u043a\u0430\u043a \u0432 GUI \u0442\u0430\u043a \u0438 \u0432 HTML \u0440\u0435\u0436\u0438\u043c\u0435 WordPress. <font color=\"green\">Markdown<\/font> \u0432\u0441\u0451 \u0438\u0437\u043c\u0435\u043d\u0438\u043b \u0434\u043b\u044f \u043c\u0435\u043d\u044f. \u041f\u043e-\u043c\u043e\u0435\u043c\u0443, \u043d\u0430\u043c \u0434\u0430\u0432\u043d\u043e \u043f\u043e\u0440\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u044c\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430.<br \/>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u0432\u0430\u043c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0435\u0433 <font color=\"green\">Markdown<\/font> \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <a href=\"http:\/\/www.polymer-project.org\/\">Polymer, Web Components<\/a> \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u043e\u0442 Google.<\/p>\n<h2>Github<\/h2>\n<p>  \u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0445\u043e\u0434\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0442\u0435\u0433\u0430, <a href=\"https:\/\/github.com\/robdodson\/mark-down\">\u0445\u0432\u0430\u0442\u0430\u0439\u0442\u0435 \u043a\u043e\u0434 \u0441 Github.<\/a><a name=\"habracut\"><\/a><\/p>\n<h2>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430<\/h2>\n<p>  \u041e\u0431\u043e \u0432\u0441\u0451\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443, \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e <font color=\"green\">Polymer<\/font>. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"http:\/\/bower.io\">bower<\/a>, \u0447\u0442\u043e \u0438 \u0432\u0430\u043c \u0441\u043e\u0432\u0435\u0442\u0443\u044e. \u041e\u0431 \u044d\u0442\u043e\u043c \u043f\u043e\u043a\u0430 \u043d\u0435 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e \u0433\u043e\u0432\u043e\u0440\u044f\u0442, \u043d\u043e \u0434\u0443\u043c\u0430\u044e bower \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0436\u0435 \u0432\u0430\u0436\u0435\u043d \u0434\u043b\u044f web components, \u043a\u0430\u043a <font color=\"green\">npm<\/font> \u0438 \u043f\u0430\u043f\u043a\u0430 <font color=\"green\">node_modules<\/font> \u0434\u043b\u044f Node.js. \u0415\u0441\u043b\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u043c\u0435\u0441\u0442\u043e\u043d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u0438 \u0438 \u0432\u0435\u0440\u0441\u0438\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u043e\u043d\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u044b \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043e\u0442 \u043b\u0438\u0448\u043d\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b. \u041e\u0442\u043b\u043e\u0436\u0438\u043c \u044d\u0442\u043e\u0442 \u0440\u0430\u0437\u0433\u043e\u0432\u043e\u0440 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0437. \u0410 \u043f\u043e\u043a\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c:<\/p>\n<pre><code class=\"bash\">bower init <\/code><\/pre>\n<p>  \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b <font color=\"green\">bower.json<\/font>. <\/p>\n<p>   <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/8ed\/b8b\/8fd\/8edb8b8fd27b7cb8505d2b0687a4f717.jpg\" alt=\"bower init is kinda awesome\"\/><\/p>\n<p>  \u041d\u0430\u043c \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f <font color=\"green\">Polymer<\/font> \u0438 <font color=\"green\">Markdown<\/font>, \u0442\u0430\u043a \u0447\u0442\u043e<\/p>\n<pre><code class=\"bash\">bower install polymer markdown --save<\/code><\/pre>\n<p>  \u0418 \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0435\u0441\u0442\u043e\u0432\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u042f \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044e, \u0447\u0442\u043e \u0441\u0430\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0431\u0443\u0434\u0435\u0442 \u043b\u0435\u0436\u0430\u0442\u044c \u0432 \u043f\u0430\u043f\u043a\u0435, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f (\u043a\u0440\u0435\u0430\u0442\u0438\u0432\u043d\u043e) <font color=\"green\">elements<\/font>, \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0435\u0433\u043e \u043e\u0442\u0442\u0443\u0434\u0430:<\/p>\n<pre><code class=\"html\">&lt;!DOCTYPE html&gt;     &lt;html lang=&quot;en&quot;&gt;     &lt;head&gt;     &lt;meta charset=&quot;utf-8&quot;&gt;     &lt;title&gt;Markdown Polymer Element&lt;\/title&gt;      &lt;!-- Include our Markdown lib --&gt;     &lt;script src=&quot;.\/bower_components\/markdown\/lib\/markdown.js&quot;&gt;&lt;\/script&gt;      &lt;!-- Include Polymer awesomesauce --&gt;     &lt;script src=&quot;.\/bower_components\/polymer\/polymer.min.js&quot;&gt;&lt;\/script&gt;      &lt;!-- Import our polymer elements --&gt;     &lt;link rel=&quot;import&quot; href=&quot;.\/elements\/mark-down.html&quot;&gt;     &lt;\/head&gt;     &lt;body&gt;     &lt;!-- Test our awesome new tag --&gt;     &lt;mark-down&gt;&lt;\/mark-down&gt;     &lt;\/body&gt;     &lt;\/html&gt; <\/code><\/pre>\n<h2>\u042d\u043b\u0435\u043c\u0435\u043d\u0442<\/h2>\n<p>  \u041d\u0430\u0447\u043d\u0451\u043c \u0441 \u0431\u0430\u0437\u043e\u0432\u043e\u0433\u043e \u043a\u0430\u0440\u043a\u0430\u0441\u0430 \u0432 \u0444\u0430\u0439\u043b\u0435 <font color=\"green\">elements\/mark-down.html<\/font>.<\/p>\n<pre><code class=\"html\">&lt;polymer-element name=&quot;mark-down&quot;&gt;     &lt;template&gt;     &lt;div id=&quot;markdown&quot;&gt;&lt;\/div&gt;     &lt;\/template&gt;     &lt;script&gt;     Polymer(&quot;mark-down&quot;);     &lt;\/script&gt; &lt;\/polymer-element&gt; <\/code><\/pre>\n<p>  \u0420\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u043f\u043e \u0448\u0430\u0433\u0430\u043c:<\/p>\n<pre><code class=\"html\">&lt;polymer-element name=&quot;mark-down&quot;&gt; <\/code><\/pre>\n<p>  \u042d\u0442\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u043c\u044b \u0445\u043e\u0442\u0438\u043c, \u0447\u0442\u043e\u0431\u044b <font color=\"green\">Polymer<\/font> \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b \u043d\u043e\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c \u0442\u0435\u0433\u0430 <font color=\"green\">mark-down<\/font>.<\/p>\n<pre><code class=\"html\">&lt;template&gt;     &lt;div id=&quot;markdown&quot;&gt;&lt;\/div&gt; &lt;\/template&gt; <\/code><\/pre>\n<p>  \u042d\u0442\u043e \u043d\u0430\u0448 \u0448\u0430\u0431\u043b\u043e\u043d, \u0438\u0437 \u043d\u0435\u0433\u043e <font color=\"green\">Polymer<\/font> \u0441\u0434\u0435\u043b\u0430\u0435\u0442 <a href=\"\/blog\/2013\/08\/26\/shadow-dom-introduction\/\">Shadow DOM<\/a>. \u0412\u0441\u044f <font color=\"green\">Markdown<\/font> \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u043f\u0438\u0448\u0435\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0435\u0433\u0430 <font color=\"green\">&lt;mark-down&gt;<\/font>, \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0441\u043f\u0430\u0440\u0448\u0435\u043d\u0430 \u0438 \u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0442\u0443\u0434\u0430.<\/p>\n<pre><code class=\"html\">&lt;script&gt;     Polymer(&quot;mark-down&quot;); &lt;\/script&gt; <\/code><\/pre>\n<p>  \u041d\u0430\u043a\u043e\u043d\u0435\u0446 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 <font color=\"green\">Polymer<\/font> \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0438\u043c\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043d\u043e\u0432\u044b\u0439 \u0442\u044d\u0433 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043d\u0430\u0447\u0430\u0442\u044c <\/p>\n<h2>Markdown<\/h2>\n<p>  \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0435\u0441\u0442\u044c \u043c\u0435\u0442\u043e\u0434 <font color=\"green\">createdCallback<\/font>, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440\u0430. <font color=\"green\">Polymer<\/font> \u0443\u043a\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u0442 \u0438\u043c\u044f \u043c\u0435\u0442\u043e\u0434\u0430 \u0434\u043e <font color=\"green\">created<\/font>, \u043d\u043e \u0438\u0434\u0435\u044f \u0442\u0430 \u0436\u0435. \u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c callback <font color=\"green\">created<\/font>, \u0447\u0442\u043e\u0431\u044b \u0432\u0437\u044f\u0442\u044c <font color=\"green\">innerHTML<\/font> \u0438\u0437 \u043d\u0430\u0448\u0435\u0433\u043e \u0442\u0435\u0433\u0430 \u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 <font color=\"green\">Markdown<\/font>. \u0427\u0442\u043e\u0431\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u0432\u0442\u043e\u0440\u044b\u043c \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u0432 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 <font color=\"green\">Polymer<\/font>.<\/p>\n<pre><code class=\"javascript\">Polymer(&quot;mark-down&quot;, {     created: function() {     var content = this.trim(this.innerHTML);     var parsed = markdown.toHTML(content);     this.$.markdown.innerHTML = parsed;     },     \/\/ Remove excess white space     trim: function() { ... } }); <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u043c\u044b \u0432\u043e\u0437\u044c\u043c\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0442\u0435\u0433\u0430 <font color=\"green\">&lt;mark-down&gt;<\/font> \u0438 \u0438\u0437\u0431\u0430\u0432\u0438\u043c\u0441\u044f \u043e\u0442 \u043d\u0435\u043d\u0443\u0436\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u0435\u043b\u043e\u0432. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e <font color=\"green\">trim<\/font>, \u043f\u043e\u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0438\u0437 <a href=\"https:\/\/github.com\/ryanseddon\/markdown-component\">Markdown element \u0420\u0430\u0439\u0430\u043d\u0430 \u0421\u0435\u0434\u0434\u043e\u043d\u0430(eng.)<\/a>.<\/p>\n<pre><code class=\"javascript\">created: function() {     var content = this.trim(this.innerHTML);     ... }, <\/code><\/pre>\n<p>  \u0417\u0430\u0442\u0435\u043c \u043c\u044b \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0432 <font color=\"green\">Markdown<\/font> \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u0435\u0442\u043e\u0434\u0430 <font color=\"green\">toHTML<\/font> \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <font color=\"green\">Markdown<\/font>. \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u0443\u044e \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043c \u0432 \u0434\u0438\u0432 \u0441 Id <font color=\"green\">#markdown<\/font> \u0438\u0437 \u043d\u0430\u0448\u0435\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430.<\/p>\n<pre><code class=\"javascript\">created: function() {     ...     var parsed = markdown.toHTML(content);     this.$.markdown.innerHTML = parsed; } <\/code><\/pre>\n<h3>\u041f\u043e\u0438\u0441\u043a \u043d\u043e\u0434\u043e\u0432<\/h3>\n<p>  \u0412\u044b \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0437\u0430\u043c\u0435\u0442\u0438\u043b\u0438 \u0437\u0430\u0431\u0430\u0432\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 <font color=\"green\">$<\/font> \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u0434\u0443\u043c\u0430\u043b\u0438, \u0447\u0442\u043e \u044f \u043c\u0443\u0434\u0440\u044e \u0441 <font color=\"green\">jQuery<\/font>. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 <font color=\"green\">Polymer<\/font> \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u0430\u0441\u0441\u0438\u0432, \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0438\u0439 \u0432\u0441\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0443 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0435\u0441\u0442\u044c <font color=\"green\">id<\/font>. \u042d\u0442\u043e\u0442 \u043c\u0430\u0441\u0441\u0438\u0432 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <font color=\"green\">$<\/font>, \u0442\u0430\u043a \u0447\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b, \u0412\u044b \u043b\u0435\u0433\u043a\u043e \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0434\u043e \u043b\u044e\u0431\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <font color=\"green\">this.$.someId<\/font>. \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f <font color=\"green\">Polymer<\/font> \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u044d\u0442\u043e <a href=\"http:\/\/www.polymer-project.org\/getting-started.html#automatic-node-finding\">\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0438\u0441\u043a \u043d\u043e\u0434\u043e\u0432. (eng.)<\/a><em>\u041d\u043e \u0440\u0430\u0437\u0432\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 \u043d\u0435 \u0430\u043d\u0442\u0438-\u043f\u0430\u0442\u0442\u0435\u0440\u043d?<\/em>\u0425\u043e\u0442\u044f \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u043d\u0435 \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0435 Id, <font color=\"green\">Shadow DOM<\/font> \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0432\u0441\u0435 \u0441 \u0447\u0438\u0441\u0442\u043e\u0433\u043e \u043b\u0438\u0441\u0442\u0430 \u0438 \u0434\u0430\u0435\u0442 \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u0441\u0432\u043e\u044e \u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0443 \u0434\u043b\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Id <font color=\"green\">#markdown<\/font> \u0432 \u043d\u0430\u0448\u0435\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0435 \u0438 \u043d\u0435 \u043f\u0435\u0440\u0435\u0436\u0438\u0432\u0430\u0442\u044c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441 \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u043c. \u0412\u0435\u0441\u044c\u043c\u0430 \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e!<\/p>\n<h2>\u0422\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c<\/h2>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u043a\u043e\u0440\u043c\u0438\u0442\u044c \u043d\u0430\u0448\u0435\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 <font color=\"green\">markdown<\/font> \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f.<\/p>\n<pre><code class=\"html\">&lt;mark-down&gt;     # This is a heading     ## This is a subheading      Here is **more** _Markdown!_      `This is some codez`      This [is a link](http:\/\/robdodson.me)     &lt;\/mark-down&gt; <\/code><\/pre>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/181\/4ff\/743\/1814ff743ce26125c6fc0ccaf0885856.jpg\" alt=\"sweet sweet markdown!\"\/>\u041f\u0440\u043e\u0449\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e!<\/p>\n<h2>\u041c\u043e\u0430\u0440!<\/h2>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0449\u0435 \u043c\u043d\u043e\u0433\u043e \u0447\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <font color=\"green\">contenteditable<\/font>, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430\u043c \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u043c \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c. <a href=\"https:\/\/github.com\/robdodson\/mark-down\">\u041a\u043e\u0434 \u0435\u0441\u0442\u044c \u043d\u0430 Github<\/a>, \u043d\u0435 \u0441\u0442\u0435\u0441\u043d\u044f\u0439\u0442\u0435\u0441\u044c \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c.   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/212015\/\"> http:\/\/habrahabr.ru\/post\/212015\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">       <font color=\"gray\"> \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u0445\u043e\u0440\u043e\u0448\u0438\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b \u043f\u043e web-components, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0441 <a href=\"http:\/\/habrahabr.ru\/users\/filipovskii_off\/\" class=\"user_link\">filipovskii_off<\/a> \u0440\u0435\u0448\u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u044d\u0442\u0443 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e. <\/font><\/p>\n<p>  \u042d\u0445\u2026 <font color=\"green\">Markdown<\/font>\u2026 \u041e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u0448\u0442\u0443\u043a\u0430! \u042f, \u0447\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u043d\u0435 \u043f\u0438\u0441\u0430\u043b \u0431\u044b \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442, \u0435\u0441\u043b\u0438 \u0431\u044b \u043d\u0435 <font color=\"green\">Markdown<\/font>. \u041c\u043d\u043e\u0433\u043e \u0440\u0430\u0437 \u044f \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u043d\u0430\u0447\u0430\u0442\u044c \u0431\u043b\u043e\u0433, \u043d\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043d\u0430\u0445\u043e\u0434\u0438\u043b \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u043c, \u043a\u0430\u043a \u0432 GUI \u0442\u0430\u043a \u0438 \u0432 HTML \u0440\u0435\u0436\u0438\u043c\u0435 WordPress. <font color=\"green\">Markdown<\/font> \u0432\u0441\u0451 \u0438\u0437\u043c\u0435\u043d\u0438\u043b \u0434\u043b\u044f \u043c\u0435\u043d\u044f. \u041f\u043e-\u043c\u043e\u0435\u043c\u0443, \u043d\u0430\u043c \u0434\u0430\u0432\u043d\u043e \u043f\u043e\u0440\u0430 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u044c\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430.<br \/>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u044f \u043f\u043e\u043a\u0430\u0436\u0443 \u0432\u0430\u043c, \u043a\u0430\u043a \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0435\u0433 <font color=\"green\">Markdown<\/font> \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <a href=\"http:\/\/www.polymer-project.org\/\">Polymer, Web Components<\/a> \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u043e\u0442 Google.<\/p>\n<h2>Github<\/h2>\n<p>  \u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u0445\u043e\u0434\u043e\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0442\u0435\u0433\u0430, <a href=\"https:\/\/github.com\/robdodson\/mark-down\">\u0445\u0432\u0430\u0442\u0430\u0439\u0442\u0435 \u043a\u043e\u0434 \u0441 Github.<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-212015","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/212015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=212015"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/212015\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=212015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=212015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=212015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}