Skip to content

Conversation

@izhyvaiev
Copy link

Summary

Added escape of pipe ("|") character in table cells. Fixes - #108

Changes Made

1. Core Implementation

  • File: confluence_markdown_exporter/utils/table_converter.py
  • Added escaping of | char in convert_th and convert_td methods

2. Test Coverage

  • File: tests/unit/test_table_converter.py (new file)
  • Created test suite with several cases to test pipe character escaping in table cells

Testing

All tests pass successfully:

  • 4 pipe char escaping specific tests
  • 78 total unit tests (including existing tests)

## Summary

Added escape of pipe ("|") character in table cells. Fixes - Spenhouet#108

## Changes Made

### 1. Core Implementation
- **File**: `confluence_markdown_exporter/utils/table_converter.py`
- Added escaping of `|` char in `convert_th` and `convert_td` methods

### 2. Test Coverage
- **File**: `tests/unit/test_table_converter.py` (new file)
- Created test suite with several cases to test pipe character escaping in table cells

## Testing

All tests pass successfully:
- 4 pipe char escaping specific tests
- 78 total unit tests (including existing tests)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant