better capsule (aka footnotes)
This commit is contained in:
13
patches/footnotes-leave-paragraphs.patch
Normal file
13
patches/footnotes-leave-paragraphs.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/src/Plugin/Filter/FootnotesFilter.php b/src/Plugin/Filter/FootnotesFilter.php
|
||||
index 03bff31..8189be0 100644
|
||||
--- a/src/Plugin/Filter/FootnotesFilter.php
|
||||
+++ b/src/Plugin/Filter/FootnotesFilter.php
|
||||
@@ -168,7 +168,7 @@ class FootnotesFilter extends FilterBase implements ContainerFactoryPluginInterf
|
||||
// Citations should not contain paragraph tags as they should be inline
|
||||
// content. This attempts to remove them; however, if the 'Convert line
|
||||
// breaks filter' runs after this filter, it will still be an issue.
|
||||
- $markup = str_replace(['<p>', '</p>'], '', $markup);
|
||||
+ // $markup = str_replace(['<p>', '</p>'], '', $markup);
|
||||
static::replaceNodeContent($node, $markup);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user