Comments (8)
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.
@pjhuxford Thanks, let me try reproducing this.
from orgcss.
@gongzhitaao ^^^
from orgcss.
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.
Thank you @gongzhitaao
from orgcss.
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.
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.
@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)
- Missing license file HOT 2
- Duplicated styles in org-default.css HOT 3
- Add style support for LaTex picture fragments (when not using MathJax) HOT 1
- Fixing the incorrect back reference for BibTex HOT 2
- Add more language labels to source blocks HOT 2
- Load MathJax packages HOT 2
- add copy button for code block HOT 2
- Support for admonitions like note, warning, tip, etc.
- CSS LIcense Question HOT 1
- Support for enumerated lists with letters
- default postamble doesn't get style HOT 1
- build instructions HOT 1
- Scroll To Top Button
- No spacing between paragraphs? HOT 2
- Consider supporting dark mode in iOS HOT 3
- Little typo in index.org & margin disapear using org 9.3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orgcss.