hedgedoc/src
Erik Michelson 17cc691403
Fixed bug that two p-tags were encapsulated inside each other (#278)
* Fixed bug that two p-tags were encapsulated inside each other

This bug was introduced because the wider-possible-replacer replaced each element that was subject to be enlarged with a brand new p-surrounding. That surrounding got the key of the old (now inner) element and therefore casts an duplicate key exception.
This fix solves that problem by setting the 'wider-possible' class attribute directly on the selected tag instead of creating a surrounding.

* Removed unnecessary console log

* Optimized attribute assignment to not fail on elements without attribs

* Added comment describing the node.attribs assignment
2020-06-26 00:07:15 +02:00
..
api Adds an info banner to the app (#190) 2020-06-15 21:54:20 +02:00
components Fixed bug that two p-tags were encapsulated inside each other (#278) 2020-06-26 00:07:15 +02:00
external-types Add a wrapper for linkify (#268) 2020-06-24 23:52:45 +02:00
global-style Move fonts into subdirs 2020-06-25 21:16:58 +02:00
redux Basic markdown renderer (#197) 2020-06-20 00:44:18 +02:00
utils Context menu to each history entry (#171) 2020-06-09 22:35:09 +02:00
index.tsx added redirector component (#199) 2020-06-13 00:29:39 +02:00
react-app-env.d.ts imported current state of the mockup into the public repo 2020-05-14 15:41:38 +02:00
service-worker.ts better linting (#72) 2020-05-27 15:43:28 +02:00
setup-tests.ts better linting (#72) 2020-05-27 15:43:28 +02:00
version.json Add version info (#80) 2020-05-29 13:08:59 +02:00