Same Markdown style sheet behaviors different in 2 ways

There are two ways to use the same CSS file, but the results of Markdown rendering are different. May I ask what causes this?

Method one

Add CSS: item link directly to the md file, and its table grid lines will display normally.

Method two

Add the style sheet in Setup, use the same item link, but the table grid lines are not displayed

In the first case your stylesheet is used in addition to the default stylesheet selected in Settings > Files > Markdown (or the internal one), in the second case your stylesheet replaces the default stylesheet.

Thank you for your prompt feedback.

It turns out that the two ways are not the same.

Do you mean that the first case is integrated with the default stylesheet (or similar effect)? And the second situation is the real effect of the new stylesheet itself?

It seems that I still need to modify this new css file so that the table can display grid lines. What grammar rules does the css file used by DT (for example, some attribute names are different from others‘)?

In the first case both stylesheets are used (the default and your stylesheet), in the second case only your stylesheet. That’s the only difference.

@cgrunenberg can you share the “standard” DTP4 css stylesheet or is it top secret?

How would that be “top secret”? Create a dummy MD document in DT, convert it to HTML (also in DT) and take a look at that HTML’s source code.

2 Likes

There‘s no static internal stylesheet, it depends on some settings (e.g. font, image scaling).

Got it, thank you.