Skip to content

Commit

Permalink
Merge pull request #36 from chrishrb/34-new-line-behavior
Browse files Browse the repository at this point in the history
34 Fix wrong new-line behavior
  • Loading branch information
chrishrb authored Feb 10, 2025
2 parents 96ce1d8 + 517d9f1 commit ac122df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ This project is a reimplementation of the original Python-based [grip](https://g

## :zap: Features

* :zap: Written in Go :+1:
* 📄 Render markdown to HTML and view it in your browser
* 📱 Dark and light theme
* 🎨 Syntax highlighting for code
* [x] Todo list like the one on GitHub
* Support for github markdown emojis :+1: :bowtie:
* Support for mermaid diagrams
- :zap: Written in Go :+1:
- 📄 Render markdown to HTML and view it in your browser
- 📱 Dark and light theme
- 🎨 Syntax highlighting for code
- [x] Todo list like the one on GitHub
- Support for github markdown emojis :+1: :bowtie:
- Support for mermaid diagrams

```mermaid
graph TD;
Expand All @@ -39,7 +39,6 @@ graph TD;
> [!TIP]
> Support of blockquotes (note, tip, important, warning and caution) [see here](https://github.com/orgs/community/discussions/16925)

## :rocket: Getting started

To install go-grip, simply:
Expand Down Expand Up @@ -90,8 +89,8 @@ To terminate the current server simply press `CTRL-C`.

## :bug: Known TODOs / Bugs

* [ ] Tests and refactoring
* [ ] Make it possible to export the generated html
- [ ] Tests and refactoring
- [ ] Make it possible to export the generated html

## :pushpin: Similar tools

Expand Down
2 changes: 1 addition & 1 deletion pkg/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ var blockquotes = []string{"Note", "Tip", "Important", "Warning", "Caution"}
func (client *Client) MdToHTML(bytes []byte) []byte {
extensions := parser.NoIntraEmphasis | parser.Tables | parser.FencedCode |
parser.Autolink | parser.Strikethrough | parser.SpaceHeadings | parser.HeadingIDs |
parser.BackslashLineBreak | parser.MathJax | parser.HardLineBreak | parser.OrderedListStart
parser.BackslashLineBreak | parser.MathJax | parser.OrderedListStart
p := parser.NewWithExtensions(extensions)
doc := p.Parse(bytes)

Expand Down

0 comments on commit ac122df

Please sign in to comment.