Skip to content

Unexpected space added when navigating with arrows #674

@war-in

Description

@war-in

When pasting this huge text

# Create files and folders

The file explorer is accessible using the button in left corner of the navigation bar. You can create a new file by clicking the *New file* button in the file explorer. You can also create folders by clicking the *New folder* button.

# Delete a file

You can delete the current file by clicking the *Remove* button in the file explorer. The file will be moved into the *Trash* folder and automatically deleted after 7 days of inactivity.

# Synchronization

Synchronization is one of the biggest features of StackEdit. It enables you to synchronize any file in your workspace with other files stored in your *Google Drive*, your *Dropbox* and your *GitHub* accounts. This allows you to keep writing on other devices, collaborate with people you share the file with, integrate easily into your workflow... The synchronization mechanism takes place every minute in the background, downloading, merging, and uploading file modifications.

There are two types of synchronization and they can complement each other:

- The workspace synchronization will sync all your files, folders and settings automatically. This will allow you to fetch your workspace on any other device.
	> To start syncing your workspace, just sign in with Google in the menu.

- The file synchronization will keep one file of the workspace synced with one or multiple files in *Google Drive*, *Dropbox* or *GitHub*.
	> Before starting to sync files, you must link an account in the *Synchronize* sub-menu.

# Open a file

You can open a file from *Google Drive*, *Dropbox* or *GitHub* by opening the *Synchronize* sub-menu and clicking *Open from*. Once opened in the workspace, any modification in the file will be automatically synced.

# Save a file

You can save any file of the workspace to *Google Drive*, *Dropbox* or *GitHub* by opening the *Synchronize* sub-menu and clicking *Save on*. 

# Synchronize a file

If you just have modified your file and you want to force syncing, click the *Synchronize now* button in the navigation bar.

> *Note:* The *Synchronize now* button is disabled if you have no file to synchronize.

# Manage file synchronization

Since one file can be synced with multiple locations, you can list and manage synchronized locations by clicking *File synchronization* in the *Synchronize* sub-menu. This allows you to list and remove synchronized locations that are linked to your file.

# Publication

Publishing in StackEdit makes it simple for you to publish online your files. Once you're happy with a file, you can publish it to different hosting platforms like *Blogger*, *Dropbox*, *Gist*, *GitHub*, *Google Drive*, *WordPress* and *Zendesk*. With [Handlebars templates](http://handlebarsjs.com/), you have full control over what you export.

*lol*lol*

> Before starting to publish, you must link an account in the *Publish* sub-menu.

# Markdown extensions

StackEdit extends the standard Markdown syntax by adding extra *Markdown extensions*, providing you with some nice features.

> *ProTip:* You can disable any *Markdown extension* in the *File properties* dialog.

# KaTeX

You can render LaTeX mathematical expressions using [KaTeX](https://khan.github.io/KaTeX/):

> You can find more information about *LaTeX* mathematical expressions [here](http://meta.math.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference).


# UML diagrams

You can render UML diagrams using [Mermaid](https://mermaidjs.github.io/). For example, this will produce a sequence diagram:


sequenceDiagram
Alice ->> Bob: Hello Bob, how are you?
Bob-->>John: How about you John?
Bob--x Alice: I am good thanks!
Bob-x John: I am good thanks!
Note right of John: Bob thinks a long<br/>long time, so long<br/>that the text does<br/>not fit on a row.


Bob-->Alice: Checking with John...
Alice->John: Yes... John, how are you?

into text input in Expensify/App, I encountered a strange behaviour with random spaces being added when navigating with arrows.

React.Native.Live.Markdown.PR.60664.mov

I haven't tried reproducing it in the example app but heard that @Skalakid investigated that.

Versions

  • react-native-live-markdown: "0.1.244"
  • react-native: "0.77.1"

Steps to reproduce

  1. Paste the mentioned text into the input
  2. Navigate with arrows
  3. Observe random spaces being added

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions