您现在的位置是:主页 > news > 帝国cms手机网站教程/温州seo排名优化
帝国cms手机网站教程/温州seo排名优化
admin2025/5/18 1:54:58【news】
简介帝国cms手机网站教程,温州seo排名优化,网站内容维护合同,运输 织梦网站模板在 7上,我在上運行org模式 8.2.6,並遇到了在從org模式導出的HTML中鏈接工作的特點。 我廣泛使用 org-id 為org模式文件( 存儲在標題的:PROPERTIES: 抽屜中) 中的標題分配惟一的id 。在org模式 8.0中引入新導出框架之前,所有這些鏈接都沒有問題…
在 7上,我在上運行org模式 8.2.6,並遇到了在從org模式導出的HTML中鏈接工作的特點。 我廣泛使用 org-id 為org模式文件( 存儲在標題的:PROPERTIES: 抽屜中) 中的標題分配惟一的id 。
在org模式 8.0中引入新導出框架之前,所有這些鏈接都沒有問題。 無論標題層次的層次如何,導出的html標識鏈接都能正常工作。 但是,使用新的導出器框架會產生不同的結果。 如果目標標題位於a below headline標題級別為( H:3 ) 默認為級別 3,則基於id的鏈接總是失敗。 注意:這隻是導出的HTML的true ;基於within的鏈接在Emacs中完美地工作。
下面是將它的導出到 HTML ( 有關詳細信息,請參閱註釋) 時演示這裡行為的一個最小示例:* Headline Level 1
** Headline Level 2
*** Headline Level 3
:PROPERTIES:
:ID: 307db49e-e001-4a7b-9541-96eee2ae6f06
:END:
**** <>Non-headline level
:PROPERTIES:
:ID: 3be9179d-f838-4052-93ca-6c76c9aff12d
:END:
** Headline Level 2
*** Headline Level 3
Now I want to link to information that appears elsewhere in the file. Links work as
expected within Emacs. When exported to HTML, however, links do not work as they
did before the new exporter framework was introduced in Org-mode 8.0.
**** ID-based link: [[id:307db49e-e001-4a7b-9541-96eee2ae6f06][Headline Level 3]]
This link/does/work. Using IDs always works for links to any headline level. By
"headline level" I mean any Org-mode heading that is defined as a headline
(default H:3).
**** ID-based link: [[id:3be9179d-f838-4052-93ca-6c76c9aff12d][Non-headline level]]
This link using the ID/doesn't/work when exported to HTML using the new exporter
framework. Now, using IDs as the target for links/always/fails for links to any
headline lower than the headline level defined in the export settings.
**** Non-ID-based link: [[heading-level-4][Non-headline level]]
Using an internal link works, but I have/many/existing files that depend on IDs
for links at heading levels lower than the levels I want treated as (numbered)
headlines, and I also sometimes link to targets in other files, in which case,
using ID's creates a much simpler workflow.
如果文件 上面 命名為 demo-links.org,則默認輸出文件為 demo-links.html 。 第一個工作鏈接的目標的HTML如下所示:
1.1.1 Headline Level 3
它鏈接的HTML的外觀如下:
Headline Level 3
鏈接ID是目標代碼的一部分,但在鏈接代碼中不使用。
非工作鏈接的目標的HTML如下所示:
請注意,生成的代碼不包含 ID ( 3 be9179d-f838-4052-93ca-6c76c9aff12d ) 。 它也不包含像以前的鏈接那樣的節 ID 。
指向它的鏈接的HTML如下所示:
Non-headline level
我相信 ox-html.el的相關代碼出現在評論"指向標題的鏈接"之後,但我是一個帶有elisp的novice ( at ) 。
我的問題是:這種行為是通過設計,還是有一些設置可以使導出工作成為新的導出框架。