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

Markdown table does not render? #293

Open
PGijsbers opened this issue Feb 3, 2023 · 3 comments
Open

Markdown table does not render? #293

PGijsbers opened this issue Feb 3, 2023 · 3 comments

Comments

@PGijsbers
Copy link
Contributor

I tried to include a markdown table in the description of this dataset: https://www.openml.org/search?type=data&sort=runs&id=45081&status=active

But it does not seem to render:

image

Both the Github markdown renderer and my local (PyCharm) renderer seem to display the table fine.
Code and example below.

List with a description for each feature:

|Field|Description|
|---|---|
|tree_id|Unique tree identifier code|
|division|Major phylogenetic division (Angiosperm or Gymnosperm)|
|family|Family name|
|genus|Genus name|
|species|Species binomial name|
|latitude|Latitude (in decimal degrees)|
|longitude|Longitude (in decimal degrees)|
|stem_diameter_cm|Stem diameter (in cm). For multi-stemmed trees values for individual stems (Di) were pooled into a single value calculated as: sqrt(sum(Di^2)). Log-scaled (base 10).|
|height_m|Tree height (in m). Log-scaled (base 10).|
|crown_radius_m|Crown radius (in m)|
|height_outlier|Identifier for trees with height values flagged as outliers (Y = outlier; N = non-outlier)|
|crown_radius_outlier|Identifier for trees with crown radius values flagged as outliers (Y = outlier; N = non-outlier)|
|reference_id|Reference code corresponding to the data source from which a record was obtained (see 'Reference_look_up_table.csv' for details on data sources).|
|realm|"Biogeographic realm. Follows the classification of Olson et al. (2001) BioScience, 51, 933-938"|
|biome|"Biome type. Follows the classification of Olson et al. (2001) BioScience, 51, 933-938"|
|mean_annual_rainfall|Mean annual rainfall (in mm/yr). Values were obtained from the WorldClim2 database based on the geographic coordinates of the tree.|
|rainfall_seasonality|Rainfall seasonality (coefficent of variation). Values were obtained from the WorldClim2 database based on the geographic coordinates of the tree.|
|aridity_index|Aridity index (calculated as mean annual precipitation / potential evapotranspiration). Values were obtained from the Global Aridity Index and Potential Evapotranspiration Climate Database (v2) based on the geographic coordinates of the tree. Log-scaled (base 10).|
|mean_annual_temperature|Mean annual temperature (in degree C). Values were obtained from the WorldClim2 database based on the geographic coordinates of the tree.|
|maximum_temperature|Maximum temperature of the warmest month (in degree C). Values were obtained from the WorldClim2 database based on the geographic coordinates of the tree.|
|AT_AI| Ratio of 'mean annual temperature' over log-scaled 'aridity index'.|

List with a description for each feature:

Field Description
tree_id Unique tree identifier code
division Major phylogenetic division (Angiosperm or Gymnosperm)
family Family name
genus Genus name
species Species binomial name
latitude Latitude (in decimal degrees)
longitude Longitude (in decimal degrees)
stem_diameter_cm Stem diameter (in cm). For multi-stemmed trees values for individual stems (Di) were pooled into a single value calculated as: sqrt(sum(Di^2)). Log-scaled (base 10).
height_m Tree height (in m). Log-scaled (base 10).
crown_radius_m Crown radius (in m)
height_outlier Identifier for trees with height values flagged as outliers (Y = outlier; N = non-outlier)
crown_radius_outlier Identifier for trees with crown radius values flagged as outliers (Y = outlier; N = non-outlier)
reference_id Reference code corresponding to the data source from which a record was obtained (see 'Reference_look_up_table.csv' for details on data sources).
realm "Biogeographic realm. Follows the classification of Olson et al. (2001) BioScience, 51, 933-938"
biome "Biome type. Follows the classification of Olson et al. (2001) BioScience, 51, 933-938"
mean_annual_rainfall Mean annual rainfall (in mm/yr). Values were obtained from the WorldClim2 database based on the geographic coordinates of the tree.
rainfall_seasonality Rainfall seasonality (coefficent of variation). Values were obtained from the WorldClim2 database based on the geographic coordinates of the tree.
aridity_index Aridity index (calculated as mean annual precipitation / potential evapotranspiration). Values were obtained from the Global Aridity Index and Potential Evapotranspiration Climate Database (v2) based on the geographic coordinates of the tree. Log-scaled (base 10).
mean_annual_temperature Mean annual temperature (in degree C). Values were obtained from the WorldClim2 database based on the geographic coordinates of the tree.
maximum_temperature Maximum temperature of the warmest month (in degree C). Values were obtained from the WorldClim2 database based on the geographic coordinates of the tree.
AT_AI Ratio of 'mean annual temperature' over log-scaled 'aridity index'.
@joaquinvanschoren
Copy link
Sponsor Contributor

I see, we need to add the GitHub-Flavoured Markdown plugin here:

<ReactMarkdown children={this.props.object.description} />

Example: https://github.com/remarkjs/react-markdown#use-a-plugin-with-options

@PGijsbers
Copy link
Contributor Author

I'm sorry, but to clarify: did you expect me to open a PR with that or is it a note to self?

@joaquinvanschoren
Copy link
Sponsor Contributor

joaquinvanschoren commented Feb 14, 2023 via email

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