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

Bad rendering: go-grip (grip) vs Github preview #5

Open
Disonantemus opened this issue Oct 31, 2024 · 1 comment
Open

Bad rendering: go-grip (grip) vs Github preview #5

Disonantemus opened this issue Oct 31, 2024 · 1 comment

Comments

@Disonantemus
Copy link

Disonantemus commented Oct 31, 2024

As a reimplementation of grip but local (without inet), is almost the same with my test files. But right now is not the same as GitHub markdown preview (GFM):

Bad rendering examples (GFM vs grip/go-grip):

GFM don't need two-spaces at the end of line for lineabreaks:

1st line.
2nd line.

Numbered Start (Lists), should be: 57 & 58

  1. foo
  2. bar

Smart Typography: in GFM should not be recognized

(c) (C) copyright
(r) (R) registered
(tm) (TM) trademark

HTML Symbol Entities inside linecode

© ©
—
™

HTML Symbol Entities
Character Entities for HTML, CSS and Javascript

€ ¥ £ $ ¢ & ©
¾ ± ∑ ∫ ≤ ≈ ∠
Æ Ď ⇒ ↓ λ Γ

‡ — ⟨ ⟩ ♠
Œ æ ö
℘ ℑ ℜ ℵ
# Ӓ Ϡ � "

ℋ ∲ ⅆ
⮝ ⌈ ⌋
 
ആ ಫ

Definition List: not supported in GFM but rendered ok in go-grip.

Apple
: Pomaceous fruit of plants of the genus Malus in
the family Rosaceae.

: An American computer company.

Orange
: The fruit of an evergreen tree of the genus Citrus.

First Term
: This is the definition of the first term.

Second Term
: This is one definition of the second term.
: This is another definition of the second term.

Emojis

Camping ⛺ Be back soon.
That is so funny! 😂

Classic markup:
😉 😢 😆 😋 ™️

Math (Inline)

This is an inline $f(x)$ function.
This is a block $$f(x)$$ function.

Math: KaTeX

$\sqrt{3x-1}+(1+x)^2$

Math Block \\[...\\]

$${e}^{i\pi }+1=0$$

Flow Charts (Mermaid)

graph TD;
    A-->B;
    A-->C;
    B-->D;
    C-->D;
Loading

Headerless: GFM does not support this, but grip does!

|--|--|--|--|--|--|--|--|
|♜| |♝|♛|♚|♝|♞|♜|
| |♟|♟|♟| |♟|♟|♟|
|♟| |♞| | | | | |
| |♗| | |♟| | | |
| | | | |♙| | | |
| | | | | |♘| | |
|♙|♙|♙|♙| |♙|♙|♙|
|♖|♘|♗|♕|♔| | |♖|

@chrishrb
Copy link
Owner

Oh I didn't know about this spec. I will implement the missing parts as soon as possible! Thanks for this hint.

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