Skip to content

Commit

Permalink
Merge pull request #169 from niharikasingh/86-remove-extra-space
Browse files Browse the repository at this point in the history
Remove extra space after tag
  • Loading branch information
benbalter authored Nov 1, 2022
2 parents 49f21b3 + 5f1d0cf commit 66c87a4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/word-to-markdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class WordToMarkdown
# Options to be passed to Reverse Markdown
REVERSE_MARKDOWN_OPTIONS = {
unknown_tags: :bypass,
github_flavored: true
github_flavored: true,
tag_border: ''
}.freeze

# Minimum version of LibreOffice Required
Expand Down
Binary file added test/fixtures/comma after bold.docx
Binary file not shown.
4 changes: 4 additions & 0 deletions test/test_word_to_markdown.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ class TestWordToMarkdown < Minitest::Test
validate_fixture 'file with space', 'This is paragraph text.'
end

should 'not add spaces between bolded text and punctuation' do
validate_fixture 'comma after bold', 'This is **bolded**, and text.'
end

unless Gem.win_platform?
should 'know the soffice version' do
assert_match(/\d\.\d\.\d\.\d/, WordToMarkdown.soffice.version)
Expand Down

0 comments on commit 66c87a4

Please sign in to comment.