zoukankan      html  css  js  c++  java
  • How to omit h1 title heading in HTML export

    How to omit h1 title heading in HTML export

    Introduce how to omit h1 title in the exported html.

    Sometimes it would be better to omit h1 title in exported HTML, and there is an email discussing it. It is suggested to add customized filters to do this:

    (defun rasmus/org-html-ignore-title-if-present (string backend info)
      "Strip title if it's already there for html."
      (when (and (org-export-derived-backend-p backend 'html)
                 (string-match "h1 class="title"" string))
        (replace-regexp-in-string "<h1 class="title">.*?</h1>" "" string)))
    
    (add-to-list 'org-export-filter-final-output-functions
                 'rasmus/org-html-ignore-title-if-present)
    

    That's it!


    Author: YangYingchao
  • 相关阅读:
    学习手机安全卫士项目源码记录(一)
    AIDL Service
    让一个Activity在开机后自动显示
    如何拦截手机屏幕休眠和唤醒动作
    润前报表简单问题
    javaEE框架的session获取
    UEditer使用
    jQuery动态绑定生成的元素
    javadoc 生成乱码
    个人异常收集_SE_EE_WEB...
  • 原文地址:https://www.cnblogs.com/yangyingchao/p/3396633.html
Copyright © 2011-2022 走看看