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
  • 相关阅读:
    C#Ref和Out作用于引用对象时的理解
    Docker-.Net Core部署
    微服务-基于Grpc的进程通信-Protobuf-net.Grpc(4-3)
    微服务-基于Grpc的进程通信-Grpc服务注册与发现 (4-2)
    微服务-基于Grpc的进程通信-简单使用(4-1)
    ELK-Windows下系统安装(1)
    Visual Studio 2019中如何使用Git
    VS2019下载速度快完成时突然变得极慢
    Swagger 发布服务器导出Excel失败,本地导出没问题
    发布到服务器后导出Excel失败
  • 原文地址:https://www.cnblogs.com/yangyingchao/p/3396633.html
Copyright © 2011-2022 走看看