Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text in Tables too large #16

Open
Sebert81 opened this issue Oct 25, 2024 · 1 comment
Open

Text in Tables too large #16

Sebert81 opened this issue Oct 25, 2024 · 1 comment

Comments

@Sebert81
Copy link

Sebert81 commented Oct 25, 2024

Hi,
thank you for your snippet.
I like it a lot. I am not too familiar with CSS, but there is one thing I cannot figure out.

Text in Tables,
First of all, I modified your code a bit so the tables have more borders. Still playing
around with colours. (See code at the bottom of the post)

a) Why is the text in the cells so much larger than the headers/rest of the text?
b) Why are the linebreaks so weird in the pdf:

I am using the ITS theme, but this also happens with the default theme.

grafik


    table, pre {
        page-break-inside: avoid !important;
    }
    table {
        font-family: "Latin Modern Roman 10" !important;
        font-size: 10pt !important;
        text-align: center !important;
        margin: 10px auto 5px !important;
        border-top: 1px solid #292929 !important;
        border-bottom: 1px solid #292929 !important;
		border-left: 1px solid #292929 !important;
		border-right: 1px solid #292929 !important;
    }
    th { /* Table headers. */
      color: black !important;
        border: none !important;
		font-weight: bold !important;
        border-bottom: 1px solid #292929 !important;
        padding: 2px 5px !important;
        margin: 10px auto 5px !important;
    }
      td {
        border: none !important;
		border: 1px solid darkgray !important;*/ 
		border-bottom: 1px solid darkgray!important;
        padding: 2px 5px !important;
     }
     
     ```
@NicklasVraa
Copy link
Owner

Hey, I'm glad you like it. Since I'm not using the export snippet myself anymore, I haven't been updating it as new releases of obsidian have rolled out. Feel free to add your own fixes and submit a pull request :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants