#15 Index may have unclosed tags in post previews

Aberta
aberta %!s(int64=6) %!d(string=hai) anos por PangolinTurtle · 2 comentarios

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.

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?

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.
Accede para unirte á conversa.
Sen etiquetas
Sen fito
Sen asignado
3 participantes
Cargando...
Cancelar
Gardar
Aínda non existe contido.