Giter Club home page Giter Club logo

Comments (8)

shichaoxia avatar shichaoxia commented on August 28, 2024 4

Using #+HTML_HEAD in an org file then C-c C-e h h (org-export-dispatch html) appends superfluous css codes generated automatically by org mode. Inside that code, pre { border: 1px solid #ccc; ... is defined. That's the reason extra border appears.

To just turn off the default style, customize org-html-head-include-default-style variable, or use this option line #+OPTIONS: html-style:nil in the Org file. Org doc.

from orgcss.

gongzhitaao avatar gongzhitaao commented on August 28, 2024 1

@pjhuxford Thanks, let me try reproducing this.

from orgcss.

mrprofessor avatar mrprofessor commented on August 28, 2024

@gongzhitaao ^^^

from orgcss.

gongzhitaao avatar gongzhitaao commented on August 28, 2024

Thank you @mrprofessor for reporting this. Yes, I saw this bug. Sorry I didn't reply earlier. I was busy with other work stuff. I will investigate sometime this week.

from orgcss.

mrprofessor avatar mrprofessor commented on August 28, 2024

Thank you @gongzhitaao

from orgcss.

gongzhitaao avatar gongzhitaao commented on August 28, 2024

The stable version of Org is 9.3.7, as of June 2020, and I couldn't reproduce this on the current stable version. Are you using the dev version?

from orgcss.

pjhuxford avatar pjhuxford commented on August 28, 2024

I have the same issue on Org 9.3 and Org 9.3.6. I was able to work around this by adding the line #+options: html-style:nil to my org document, however this makes src blocks with no language render with no border. You can obtain a border for them by adding a dummy language to the src block, e.g.

#+begin_src fake-language
fake code
#+end_src

from orgcss.

gongzhitaao avatar gongzhitaao commented on August 28, 2024

@shichaoxia Thanks, that makes sense. I was wondering why I couldn't reproduce this as I configure this in my init file.

from orgcss.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.