Skip to content

Commit

Permalink
updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Meowcolm024 committed Feb 20, 2020
1 parent 6baa710 commit 6bafcf0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@

## Unreleased changes

- Nothing

## 0.1.0

- Supported: `Heading`, `Ordered List`, `Unordered List`, `Image`, `Link`, `Comment`, `Quote`, `Inline`
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Examples:
3. 表之實例也
```

For unordered lists, use `` (text should follow directly without leaving a space), and it ends with `【列終】`.
For unordered lists, use ``, and it ends with `【列終】`.

``` markdown
〇《滕王閣序》
Expand All @@ -82,7 +82,7 @@ For unordered lists, use `〇` (text should follow directly without leaving a sp

### Comments

**Notice**: There should not be spaces in the comment line (otherwise it may not work...)
Comments start with `批:`:

``` markdown
批:註釋也
Expand Down
2 changes: 2 additions & 0 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ copyright: 2020 Malcolm Law
extra-source-files:
- README.md
- ChangeLog.md
- examples/*.md
- examples/*.jian

# Metadata used when publishing your package
# synopsis: Short description of your package
Expand Down
1 change: 1 addition & 0 deletions src/Hanzi.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ shuzi = Map.fromList $ zip "零一二三四五六七八九十" [0 .. 10]
wei :: Map.Map Char Int
wei = Map.fromList $ zip "十百千萬" [10, 100, 1000, 10000]

-- Only support natural numbers less then 100,000
shuziToInt :: String -> Int
shuziToInt x = sum $ map groupDigit $ sepBy x [] where
groupDigit :: String -> Int
Expand Down

0 comments on commit 6bafcf0

Please sign in to comment.