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
  • 相关阅读:
    vue项目index.html , main.js的关系
    vue项目是如何加载入口文件main.js的
    解决Mysql密码修改后不能登录的问题
    解决IDEA右侧maven不显示方法
    (转)sql语句定义和执行顺序
    关于我
    css中好用的clamp()函数
    vue中子组件使用$emit传值的种种情况
    我的大学 -詹书庭
    自定义组件使用v-model
  • 原文地址:https://www.cnblogs.com/yangyingchao/p/3396633.html
Copyright © 2011-2022 走看看