#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 учасників
Завантажується...
Скасувати
Зберегти
Тут ще немає жодного вмісту.