GithubHelp home page GithubHelp logo

Comments (4)

zkamvar avatar zkamvar commented on July 17, 2024

I believe this is a problem on the Jekyll side. It is parsed okay on the R side:

g <- glosario::get_glossary()
g$define("bayes_theorem")
#> Bayes' Theorem: An equation for calculating the probability that something is
#>   true if something related to it is true. If P(X) is the probability that X is
#>   true and P(X|Y) is the probability that X is true given Y is true, then
#>   P(X|Y) = P(Y|X) * P(X) / P(Y).
#> See also: bayesian_network, naive_bayes_classifier, and prior_distribution
#> 

Created on 2020-09-18 by the reprex package (v0.3.0)

from glosario.

fmichonneau avatar fmichonneau commented on July 17, 2024

yes, Jekyll interprets the | as column delineators for a table:

Screenshot from 2020-09-21 15-26-03

from glosario.

fmichonneau avatar fmichonneau commented on July 17, 2024

it looks like we need to escape the | in the definition...

I think we want to keep the markdowify filter and that implies that any later alteration of the output (e.g., using remove) means that the | would be lost.

from glosario.

zkamvar avatar zkamvar commented on July 17, 2024

The spec for kramdown is much looser than GFM or other parsers: https://kramdown.gettalong.org/quickref.html#tables

Newer versions of kramdown have GFM as an option, so maybe we can add that as the parser for markdown inside the elements? The only problem I can see is that GFM keeps the original line breaks, so the text will flow weird on smaller screens.

from glosario.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.