-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix lists of different types that are next to each other (previously unrendered) * Make Backspace no longer unindent but just delete newline * Make Enter no longer make list paragraph but outdent * Allow smart entry to keep the indentation of its line * Make a. A. I. i. all behave like 1. (don't set "start" attribute) * Add "dash" type to bullets created with a dash so an application may style it with a dash (it is not a supported type in browsers, but should be in my opinion)
- Loading branch information
Showing
8 changed files
with
89 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<script> | ||
import { Editor, smartEntry, smartQuotes } from 'typewriter-editor'; | ||
import Root from 'typewriter-editor/lib/Root.svelte'; | ||
const editor = window.editor = new Editor({ | ||
modules: { smartEntry: smartEntry(), smartQuotes } | ||
}); | ||
</script> | ||
<style> | ||
:global(ul[type="dash"]) { | ||
list-style-type: "– "; | ||
} | ||
</style> | ||
|
||
<div class="description"> | ||
<h1>Smart Entry</h1> | ||
<p> | ||
Try typing <code>* </code> (an asterisk and a space), a double dash, or quotes! | ||
</p> | ||
</div> | ||
|
||
<Root {editor} class="text-content"> | ||
<h1>Smart Entry</h1> | ||
<p> | ||
Try typing <code>* </code> (an asterisk and a space) or a double dash! | ||
</p> | ||
<p><br></p> | ||
</Root> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters