codimd icon indicating copy to clipboard operation
codimd copied to clipboard

Broken rendering of published note page

Open pnck opened this issue 2 years ago • 2 comments
trafficstars

A test note:

image

Text links are correctly rendered in the preview.
But the published version shows like this: image

Deployed through docker:

    image: hackmdio/hackmd:2.4.2-cjk
    environment:
      - CMD_USECDN=true
      - CMD_ALLOW_PDF_EXPORT=true
      - CMD_DOMAIN=***
      - CMD_AUTO_VERSION_CHECK=false
      - CMD_ALLOW_ANONYMOUS=false
      - CMD_ALLOW_ANONYMOUS_EDITS=false
      - CMD_ALLOW_ANONYMOUSE_VIEWS=true
      - CMD_DEFAULT_PERMISSION=private
      - CMD_EMAIL=false
      - CMD_ALLOW_EMAIL_REGISTER=false
      - CMD_GITHUB_CLIENTID=***
      - CMD_GITHUB_CLIENTSECRET=***
      - CMD_PROTOCOL_USESSL=true
      - CMD_ALLOW_ORIGIN=['***']
      - CMD_CSP_ENABLE=true

pnck avatar Sep 20 '23 13:09 pnck

I think there is a syntax issue. There should be a space between [url]: and the url, like: [url]: https://xxx

jackycute avatar Sep 21 '23 03:09 jackycute

@jackycute Ah sorry the screenshot has a little mistake, but it's not related. Correct syntax behaves the same.

The built-in feature introduction looks like this, and you can see it's also glitched: image

It seems that the syntax parser or something does not work properly on the published page.

pnck avatar Sep 21 '23 07:09 pnck