core: use pure js to get cookie in markdown input

Status Job ID Name Coverage
  Test
passed #1910
black

00:01:35

passed #1909
test

00:12:57

60.0%