Compare commits
1 Commits
6e592660f9
...
8f4645f24a
Author | SHA1 | Date |
---|---|---|
ktyl | 8f4645f24a |
|
@ -102,7 +102,6 @@ But if I'd taken that optimised path, I might have missed out on enjoying the th
|
||||||
---
|
---
|
||||||
|
|
||||||
I didn't reference anything directly, but there are a few books I've been thinking about which motivated this point of view. They are:
|
I didn't reference anything directly, but there are a few books I've been thinking about which motivated this point of view. They are:
|
||||||
|
|
||||||
* [You Are Not A Gadget](https://www.goodreads.com/en/book/show/6683549-you-are-not-a-gadget)
|
* [You Are Not A Gadget](https://www.goodreads.com/en/book/show/6683549-you-are-not-a-gadget)
|
||||||
* [Homo Deus](https://www.goodreads.com/book/show/31138556-homo-deus)
|
* [Homo Deus](https://www.goodreads.com/book/show/31138556-homo-deus)
|
||||||
* [Zen and The Art of Motorcycle Maintenance](https://www.goodreads.com/book/show/19438058-zen-and-the-art-of-motorcycle-maintenance)
|
* [Zen and The Art of Motorcycle Maintenance](https://www.goodreads.com/book/show/19438058-zen-and-the-art-of-motorcycle-maintenance)
|
||||||
|
|
|
@ -61,9 +61,6 @@ with open(dummy_file, 'r') as read_file, open(dest_file, 'w') as write_file:
|
||||||
# extract images from their enclosing <p> tags and put them in img panels
|
# extract images from their enclosing <p> tags and put them in img panels
|
||||||
html = re.sub('(<p>(<img(?:.+)/>)</p>)', r'<div class="img-panel">\2</div>', html)
|
html = re.sub('(<p>(<img(?:.+)/>)</p>)', r'<div class="img-panel">\2</div>', html)
|
||||||
|
|
||||||
# wrap <ul> elements with <p> to get them into blocks
|
|
||||||
html = re.sub('(<ul>(\n|.)*</ul>)', r'<p>\1</p>', html)
|
|
||||||
|
|
||||||
# insert text-panel start between non-<p> and <p> elements
|
# insert text-panel start between non-<p> and <p> elements
|
||||||
html = re.sub('((?<!</p>)\n)(<p>)', r'\1<div class="text-panel">\n\2', html)
|
html = re.sub('((?<!</p>)\n)(<p>)', r'\1<div class="text-panel">\n\2', html)
|
||||||
# insert para-block end between <p> and non-<p> elements
|
# insert para-block end between <p> and non-<p> elements
|
||||||
|
|
Loading…
Reference in New Issue