#15 Index may have unclosed tags in post previews

Atvērta
PangolinTurtle atvēra 6 gadi atpakaļ · 2 komentāri

It is possible for index.html to have an unclosed tag if there is a list in a blog post. Here's an example post:

This is just a test!

- Line 1 says something, and maybe a few more sentences. Here is some more words.
- Line 2 says something, and maybe a few more sentences. Here is some more words.
- Line 3 says something, and maybe a few more sentences. Here is some more words.
- Line 4 says something, and maybe a few more sentences. Here is some more words.
- Line 5 says something, and maybe a few more sentences. Here is some more words.

Here's the rest of the blog post.

Put this in posts/ and build.

It is possible for index.html to have an unclosed tag if there is a list in a blog post. Here's an example post: This is just a test! - Line 1 says something, and maybe a few more sentences. Here is some more words. - Line 2 says something, and maybe a few more sentences. Here is some more words. - Line 3 says something, and maybe a few more sentences. Here is some more words. - Line 4 says something, and maybe a few more sentences. Here is some more words. - Line 5 says something, and maybe a few more sentences. Here is some more words. Here's the rest of the blog post. Put this in posts/ and build.
PangolinTurtle atvērts atkārtoti 6 gadi atpakaļ
Jorge Maldonado Ventura komentēja 6 gadi atpakaļ
Līdzstrādnieks

We should calculate the word count based on the Markdown code instead of the HTML. What do you think, @SylvieLorxu?

We should calculate the word count based on the Markdown code instead of the HTML. What do you think, @SylvieLorxu?
Sylvia van Os komentēja 6 gadi atpakaļ
Īpašnieks

That sounds like an improvement. I think the main issue here is that we'll somehow have to detect unclosed tags. We could simply filter out tags in the sed statement on https://notabug.org/SylvieLorxu/mkblog.sh/src/master/.mkblog.sh#L219 but that would remove the ability to have things like images in the preview.

That sounds like an improvement. I think the main issue here is that we'll somehow have to detect unclosed tags. We could simply filter out tags in the sed statement on https://notabug.org/SylvieLorxu/mkblog.sh/src/master/.mkblog.sh#L219 but that would remove the ability to have things like images in the preview.
Pierakstieties, lai pievienotos šai sarunai.
Nav etiķešu
Nav atskaites punktu
Nav atbildīgā
3 dalībnieki
Notiek ielāde...
Atcelt
Saglabāt
Vēl nav satura.