markdown-doclet icon indicating copy to clipboard operation
markdown-doclet copied to clipboard

How can I get borders on my tables?

Open sammefford opened this issue 8 years ago • 2 comments

Also, how can I get my table cells to align top vertically?

sammefford avatar Aug 12 '16 17:08 sammefford

I would have the same questions. Alternative, how I can I specify or add my own stylesheet to do that?

ghost avatar Feb 10 '17 10:02 ghost

I faced the same issue: Standard CSS file has issues with them. I solved it:

  • copied stylesheet.8.css from markdown-doclet-1.4.jar
  • added at the end of the file
.block table,.block tr ,.block th ,.block td {
    border: 1px solid black;
    border-collapse: collapse;
}

I am not good at CSS, but it works :) }

  • added tag <stylesheetfile with to updated css file to the plugin configuration:
   <plugin>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>2.9</version>
                    <configuration>
                        <doclet>ch.raffael.mddoclet.MarkdownDoclet</doclet>
                        <docletArtifact>
                            <groupId>ch.raffael.markdown-doclet</groupId>
                            <artifactId>markdown-doclet</artifactId>
                            <version>1.4</version>
                        </docletArtifact>
                        <stylesheetfile>updated_stylesheet.8.css</stylesheetfile>
                        <useStandardDocletOptions>true</useStandardDocletOptions>
                    </configuration>
                </plugin>

Rea2 avatar Jun 24 '20 15:06 Rea2