#15 Index may have unclosed tags in post previews

Отворено
отворено пре 6 година од PangolinTurtle · 2 коментара
Jason K. MacDuffie коментирира пре 6 година

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 поново отворено пре 6 година"
Jorge Maldonado Ventura коментирира пре 6 година
Коаутор

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 коментирира пре 6 година
Власник

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.
Пријавите се да се прикључе у овом разговору.
Нема лабеле
Нема фазе
Нема одговорних
3 учесника
Учитавање...
Откажи
Сачувај
Још нема садржаја.