• 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
  • 相关阅读:
    (转) Linux中profile、bashrc、bash_profile之间的区别和联系
    Ubuntu 安装MyEclipse10
    VMware_ubuntu设置共享文件夹
    (转载)Android出现“Read-only file system”解决办法
    Android 执行 adb shell 命令
    android传感器使用
    Android源码下载和编译过程
    jquery实现的ajax
    转载SQL_trace 和10046使用
    查看Oracle相关日志 ADRCI
  • 原文地址:https://www.cnblogs.com/yangyingchao/p/3396633.html
Copyright © 2020-2023  润新知