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
  • 相关阅读:
    一般表的一般方法
    asp.net采集函数(采集、分析、替换、入库一体)
    在 Access 里使用查询建立 存储过程/视图, 并使用 ASP 执行
    制作Access代码生成器 研发中【资料整理】
    Asp.net中打造通用数据访问类(c#)[转]
    Ajax.Net程序教程.彭彭编写
    C# 类中 属性和方法写在一个类里 和 属性和方法 分开的区别感受!!
    自己在vs2003下写的findLabel[应用程序]
    [转]Response.Write后css失效问题的解决
    javascript结构图
  • 原文地址:https://www.cnblogs.com/yangyingchao/p/3396633.html
Copyright © 2011-2022 走看看