{"id":79,"date":"2020-06-14T11:48:23","date_gmt":"2020-06-14T03:48:23","guid":{"rendered":"https:\/\/ms.ntub.edu.tw\/~shyong\/?page_id=79"},"modified":"2023-01-12T20:57:09","modified_gmt":"2023-01-12T12:57:09","slug":"wordpress-markdown","status":"publish","type":"page","link":"https:\/\/ms.ntub.edu.tw\/~shyong\/index.php\/wordpress-markdown\/","title":{"rendered":"WordPress Markdown"},"content":{"rendered":"<h2>[WordPress] \u4f7f\u7528 Markdown \u5beb\u4f5c\u63d0\u5347\u7b46\u8a18\u901f\u5ea6<\/h2>\n<h2>Program<\/h2>\n<pre><code>for (let i = 0; i < 10; i++) {\n  setTimeout(function () {\n    console.log('\u9019\u57f7\u884c\u7b2c' + i + '\u6b21');\n  }, 0);\n}<\/code><\/pre>\n<pre><code class=\"language-javascript=\">var s = \"JavaScript syntax highlighting\";\nalert(s);<\/code><\/pre>\n<pre><code class=\"language-python=\">s = \"Python syntax highlighting\"\nprint s<\/code><\/pre>\n<table>\n<thead>\n<tr>\n<th>\u4e0d<\/th>\n<th>\u6f02\u4eae<\/th>\n<th>\u7684\u6587\u5b57<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><em>\u4f9d\u7136<\/em><\/td>\n<td><code>\u6e32\u67d3\u7684<\/code><\/td>\n<td><strong>\u5f88\u597d<\/strong><\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>2<\/td>\n<td>3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4e2d\u6587\u597d\u96e3<\/h2>\n<p>Step 1. CNS11643\u4e2d\u6587\u5168\u5b57\u5eab\u627e\u5230\u9019\u500b\u5b57\u7684Unicode \"\ud861\udc68:28468\" \u6ce8\u97f3\u3113\u02cb \uff0c\u4f46\u76ee\u524d\u8f38\u5165\u6cd5\u90fd\u6c92\u6709\u9019\u500b\u5b57\u3002<br \/>\nStep 2. \u5728word\u4e2d\uff0c\u8f38\u5165\u9019\u500b\u5b57\"\ud861\udc68\"\u7684Unicode\u3002<br \/>\nStep 3. \u7528Mouse\u628a\u9019\u500b\u5b57\u7684Unicode\"28468\"\u9078\u8d77\u4f86\u3002<br \/>\nStep 4. \u518d\u6309 Alt+X \u5c31\u53ef\u4ee5\u51fa\u73fe\ud861\udc68<\/p>\n<p>\u7cfb\u7d71\u5803\u7444\ud859\udf7b\u69ba<br \/>\n\ue04f\u90ed<\/p>\n<h2>LaTeX<\/h2>\n<p>The editor converts LaTeX equations in double-dollars <code>$$<\/code>: $$ax^2+bx+c=0$$. All equations are rendered as block equations. If you need inline ones, you can add the prefix <code>\\inline<\/code>: $$\\inline p={1\\over q}$$. But it is a good practice to place big equations on separate lines:<\/p>\n<p>$$x_{1,2} = {-b\\pm\\sqrt{b^2 - 4ac} \\over 2a}.$$<\/p>\n<p>In this case the LaTeX syntax will be highlighted in the source code. You can even add equation numbers (unfortunately there is no automatic numbering and refs support):<\/p>\n<p>$$|\\vec{A}|=\\sqrt{A_x^2 + A_y^2 + A_z^2}.$$(1)<\/p>\n<p>It is possible to write Cyrillic symbols in <code>MARKDOWN_HASH5fb8936e9c9736541240bd94dfc2cc38MARKDOWN<em>HASH<\/em><\/code><em> command: $$Q<\/em>\\text{\u043f\u043b\u0430\u0432\u043b\u0435\u043d\u0438\u044f}>0$$.<\/p>\n<p>One can use matrices:<\/p>\n<p>$$T^{\\mu\\nu}=\\begin{pmatrix}<br \/>\n\\varepsilon&0&0&0\\<br \/>\n0&\\varepsilon\/3&0&0\\<br \/>\n0&0&\\varepsilon\/3&0\\<br \/>\n0&0&0&\\varepsilon\/3<br \/>\n\\end{pmatrix},$$<\/p>\n<p>integrals:<\/p>\n<p>$$P<em>\\omega={n<\/em>\\omega\\over 2}\\hbar\\omega\\,{1+R\\over 1-v^2}\\int\\limits_{-1}^{1}dx\\,(x-v)|x-v|,$$<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[WordPress] \u4f7f\u7528 Markdown \u5beb\u4f5c\u63d0\u5347\u7b46\u8a18\u901f\u5ea6 Program &hellip; <a href=\"https:\/\/ms.ntub.edu.tw\/~shyong\/index.php\/wordpress-markdown\/\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-79","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ms.ntub.edu.tw\/~shyong\/index.php\/wp-json\/wp\/v2\/pages\/79"}],"collection":[{"href":"https:\/\/ms.ntub.edu.tw\/~shyong\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ms.ntub.edu.tw\/~shyong\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ms.ntub.edu.tw\/~shyong\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ms.ntub.edu.tw\/~shyong\/index.php\/wp-json\/wp\/v2\/comments?post=79"}],"version-history":[{"count":9,"href":"https:\/\/ms.ntub.edu.tw\/~shyong\/index.php\/wp-json\/wp\/v2\/pages\/79\/revisions"}],"predecessor-version":[{"id":122,"href":"https:\/\/ms.ntub.edu.tw\/~shyong\/index.php\/wp-json\/wp\/v2\/pages\/79\/revisions\/122"}],"wp:attachment":[{"href":"https:\/\/ms.ntub.edu.tw\/~shyong\/index.php\/wp-json\/wp\/v2\/media?parent=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}